aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/urlState.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/src/js/urlState.js')
-rw-r--r--web/src/js/urlState.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/web/src/js/urlState.js b/web/src/js/urlState.js
index 7802bdb8..d9c50c03 100644
--- a/web/src/js/urlState.js
+++ b/web/src/js/urlState.js
@@ -72,8 +72,12 @@ export function updateUrlFromStore(store) {
if (queryStr) {
url += "?" + queryStr
}
+ let pathname = window.location.pathname
+ if(pathname === "blank") {
+ pathname = "/" // this happens in tests...
+ }
if (window.location.hash.substr(1) !== url) {
- history.replaceState(undefined, "", `/#${url}`)
+ history.replaceState(undefined, "", `${pathname}#${url}`)
}
}