diff --git a/src/gui/src/UI/Dashboard/UIDashboard.js b/src/gui/src/UI/Dashboard/UIDashboard.js index 8fdedf1b9..f01c9bbe2 100644 --- a/src/gui/src/UI/Dashboard/UIDashboard.js +++ b/src/gui/src/UI/Dashboard/UIDashboard.js @@ -69,6 +69,13 @@ async function UIDashboard (options) { // Dispatch 'dashboard-will-open' event to allow extensions to add tabs window.dispatchEvent(new CustomEvent('dashboard-will-open', { detail: { tabs } })); + // Tab to render active on open. Apps is the default (root URL / no hash); + // Home is reached via #home. Fall back to Apps for an unknown/absent route. + const routeTab = window.dashboard_initial_route?.tab; + const initialTabId = tabs.some(t => t !== '-' && t.id === routeTab) + ? routeTab + : 'apps'; + let h = ''; h += '