mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 08:07:17 +08:00
FIX: Preload user sidebar attrs when ?enable_sidebar=1
(#19843)
This allows users to preview the sidebar even when `SiteSetting.naviation_menu` is set to `false`.
This commit is contained in:

committed by
GitHub

parent
3030a53819
commit
5db72f8daf
@ -252,6 +252,11 @@ async function buildFromBootstrap(proxy, baseURL, req, response, preload) {
|
||||
url.searchParams.append("safe_mode", reqUrlSafeMode);
|
||||
}
|
||||
|
||||
const enableSidebar = forUrlSearchParams.get("enable_sidebar");
|
||||
if (enableSidebar) {
|
||||
url.searchParams.append("enable_sidebar", enableSidebar);
|
||||
}
|
||||
|
||||
const reqUrlPreviewThemeId = forUrlSearchParams.get("preview_theme_id");
|
||||
if (reqUrlPreviewThemeId) {
|
||||
url.searchParams.append("preview_theme_id", reqUrlPreviewThemeId);
|
||||
|
Reference in New Issue
Block a user