Compare commits

..

No commits in common. "da0d6bb6a5c869d3bdf6e307e6fbaf69a814ea8e" and "f4784b5fc1db06c7b48fa3da3384d222425f3bb2" have entirely different histories.

View File

@ -373,20 +373,8 @@ class AppsManager {
const currentUrl = new URL(window.location.href);
targetTab = currentUrl.searchParams.get('tab') || 'config';
}
// Preserve the config sub-category (/app/<name>/config/<sub>) when the URL
// already points at THIS app's config. Without this, rebuilding the URL
// here strips the sub before renderAppDetail reads it back off the path, so
// a cold-load deep-link / refresh of e.g. /app/bookstack/config/ports always
// reset to the first category. Only kept for the same app — a cross-app
// switch intentionally starts at the first category.
let targetSub = null;
if (targetTab === 'config' && window.appPartsFromPath) {
const parts = window.appPartsFromPath(window.location.pathname);
if (parts.tab === 'config' && parts.app === appName) targetSub = parts.sub;
}
const newUrl = window.appPath(appName, targetTab, targetSub);
const newUrl = window.appPath(appName, targetTab);
history.pushState({}, '', newUrl);
// Update app-tabbed-manager BEFORE rendering the DOM. If renderAppDetail or