Fix one more navigation issue

This commit is contained in:
Pixeldrain-Server committed 2023-04-19 19:55:16 +02:00
1 parent e2a87d3af3
commit b90d9ee2db
1 file changed
+1 -1
+1 -1
View File
@@ -241,7 +241,7 @@ const open_sibling = async offset => {
// Capture browser back and forward navigation buttons
window.onpopstate = (e) => {
// Get the part of the URL after the bucket ID and navigate to it
let locsplit = document.location.pathname.split(state.root.id+"/", 2)
let locsplit = document.location.pathname.split(state.root.id, 2)
navigate(decodeURIComponent(locsplit[1]), false)
};