diff --git a/frontend/public/404.html b/frontend/public/404.html index 8522cdbc5..b3a086ee0 100644 --- a/frontend/public/404.html +++ b/frontend/public/404.html @@ -10,18 +10,16 @@ * everything. */ - /** turn on "preserve log" in chrome dev tools to still see this after nav */ - console.info("Redirecting from:", window.location); - console.info("With state:", window.history.state); + /** turn on "preserve log" in dev tools to still see this after nav */ + console.info("Redirecting from:", location); + console.info("With state:", history.state); - /** get redirect and state */ - const { origin, pathname, search, hash } = window.location; - const { state } = window.history; + /** save redirect and state */ + sessionStorage.redirect = location.href; + sessionStorage.redirectState = JSON.stringify(history.state); - /** set redirect and state */ - window.sessionStorage.redirect = pathname + search + hash; - window.sessionStorage.redirectState = JSON.stringify(state); - window.location = "/"; + /** navigate */ + location = "/"; diff --git a/frontend/src/App.vue b/frontend/src/App.vue index e3fb13bf8..cefeb7cb1 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -5,7 +5,8 @@