Compare commits

..

No commits in common. "9b249b99e38a5018946dbfb265c6b47901dcfa05" and "5532d6eee3884e02eaa30701105dbadcfcef4ac3" have entirely different histories.

2 changed files with 9 additions and 18 deletions

View File

@ -1914,10 +1914,10 @@ class AppsManager {
// Get navigation button for installing required services // Get navigation button for installing required services
getNavigationButton(fieldKey) { getNavigationButton(fieldKey) {
const servicePages = { const servicePages = {
'AUTHELIA': '/app/authelia', 'AUTHELIA': 'app.html?app=authelia',
'HEADSCALE': '/app/headscale', 'HEADSCALE': 'app.html?app=headscale',
'WHITELIST': '/app/traefik', 'WHITELIST': 'app.html?app=traefik',
'TRAEFIK': '/app/traefik' 'TRAEFIK': 'app.html?app=traefik'
}; };
let serviceName; let serviceName;
@ -1947,14 +1947,8 @@ class AppsManager {
// Handle navigation with unsaved changes check // Handle navigation with unsaved changes check
handleNavigation(url, serviceName) { handleNavigation(url, serviceName) {
// SPA in-app nav (path-based routes), with an absolute-path full-load // For now, just navigate - could add unsaved changes detection later
// fallback. A relative window.location.href here resolved wrong from the window.location.href = url;
// /admin/config/* pages these buttons render on.
if (typeof window.navigateToRoute === 'function' && window.spaClean) {
window.navigateToRoute(url);
} else {
window.location.href = url;
}
} }
// Generate disabled field with navigation button // Generate disabled field with navigation button

View File

@ -668,12 +668,9 @@ class SetupWizard {
this.container.classList.add('setup-launched'); this.container.classList.add('setup-launched');
setTimeout(() => { setTimeout(() => {
// Path-based route (the app uses /… URLs); the specific task is still const target = `tasks.html?task=${encodeURIComponent(firstTaskId)}&from=setup`;
// selected via ?task=. Navigate via the SPA helper, with an absolute-path if (window.router && typeof window.router.navigate === 'function') {
// full-load fallback. window.router.navigate(target);
const target = `/tasks/all?task=${encodeURIComponent(firstTaskId)}&from=setup`;
if (typeof window.navigateToRoute === 'function' && window.spaClean) {
window.navigateToRoute(target);
this.hide(); this.hide();
} else { } else {
window.location.href = target; window.location.href = target;