From b90d9ee2db64f821b8b1b1129e6eb38def36cf65 Mon Sep 17 00:00:00 2001 From: Fornax Date: Wed, 19 Apr 2023 19:55:16 +0200 Subject: [PATCH] Fix one more navigation issue --- svelte/src/filesystem/Filesystem.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svelte/src/filesystem/Filesystem.svelte b/svelte/src/filesystem/Filesystem.svelte index 21942ba..a16bb62 100644 --- a/svelte/src/filesystem/Filesystem.svelte +++ b/svelte/src/filesystem/Filesystem.svelte @@ -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) };