It was still not right

This commit is contained in:
2023-04-19 20:11:08 +02:00
parent b90d9ee2db
commit 4aaf6e4d73

View File

@@ -241,8 +241,8 @@ const open_sibling = async offset => {
// Capture browser back and forward navigation buttons // Capture browser back and forward navigation buttons
window.onpopstate = (e) => { window.onpopstate = (e) => {
// Get the part of the URL after the bucket ID and navigate to it // 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 path = document.location.pathname.replace("/d/"+state.root.id, "")
navigate(decodeURIComponent(locsplit[1]), false) navigate(decodeURIComponent(path), false)
}; };
const keydown = e => { const keydown = e => {