diff --git a/ui/js/main.js b/ui/js/main.js index 48f838331..aed81f1c8 100644 --- a/ui/js/main.js +++ b/ui/js/main.js @@ -34,7 +34,7 @@ window.addEventListener("popstate", (event, param) => { let action; if (hash !== "") { - const url = hash.split("#")[1]; + const url = hash.replace(/^#/, ""); const { params, scrollY } = event.state || {}; const queryString = toQueryString(params);