Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/webroot/js/pages/pageLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,9 @@ export async function loadPage(pageId) {
} finally {
isPageTransitioning = false

if (pageId === 'home' && currentPage !== 'home')
/* INFO: Only drop the entry this WebUI pushed. On the first load there is none, and going
back would leave the WebUI for whatever page came before it. */
if (pageId === 'home' && currentPage !== 'home' && history.state === true)
history.back()
else if (pageId !== 'home' && currentPage === 'home')
history.pushState(true, '', location.pathname)
Expand Down
Loading