diff --git a/src/gui/src/UI/Dashboard/UIDashboard.js b/src/gui/src/UI/Dashboard/UIDashboard.js index 30173b1ac..5e86f0b90 100644 --- a/src/gui/src/UI/Dashboard/UIDashboard.js +++ b/src/gui/src/UI/Dashboard/UIDashboard.js @@ -413,11 +413,8 @@ async function UIDashboard (options) { document.querySelector('.dashboard-content').classList.add(section); // Update hash to reflect current tab - // Note: Files tab updates its own hash with full path via onActivate, so skip it here - if ( section !== 'files' ) { - const newHash = section === 'home' ? '' : section; - history.replaceState(null, '', newHash ? `#${newHash}` : window.location.pathname); - } + const newHash = section === 'home' ? '' : section; + history.pushState(null, '', newHash ? `#${newHash}` : window.location.pathname); // Scroll content area to top $el_window.find('.dashboard-content').scrollTop(0);