aboutsummaryrefslogtreecommitdiff
path: root/src/client/js
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/js')
-rw-r--r--src/client/js/main.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/js/main.js b/src/client/js/main.js
index 0928ab5..1ab1287 100644
--- a/src/client/js/main.js
+++ b/src/client/js/main.js
@@ -1,9 +1,10 @@
// Remove query params
-window.history.pushState({html: document.documentElement.innerHTML, pageTitle: document.title}, '', '/');
+window.history.pushState({html: document.documentElement.innerHTML, pageTitle: document.title}, '', location.pathname);
Elm.fullscreen(Elm.Main, {
initialTime: new Date().getTime(),
translations: document.getElementById('messages').innerHTML,
conf: document.getElementById('conf').innerHTML,
- signInError: document.getElementById('signInError').innerHTML
+ signInError: document.getElementById('signInError').innerHTML,
+ location: location.pathname
});