From d006c8ec131b1636d516a0cf04a16b94c3b83cad Mon Sep 17 00:00:00 2001 From: SazukinPavel Date: Fri, 10 Jan 2025 14:35:21 +0400 Subject: [PATCH] fix query params --- src/www/js/app.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/www/js/app.js b/src/www/js/app.js index 2637a97d3..3646d31b2 100644 --- a/src/www/js/app.js +++ b/src/www/js/app.js @@ -401,7 +401,12 @@ new Vue({ alert(err.message || err.toString()); } finally { if (password || token) { - window.history.replaceState(null, null, ""); + var newurl = + window.location.protocol + + "//" + + window.location.host + + window.location.pathname; + window.history.pushState({ path: newurl }, "", newurl); } } } @@ -440,6 +445,8 @@ new Vue({ } if (theme) { localStorage.setItem("theme", theme); + this.uiTheme = theme; + this.setTheme(theme); } this.tryAuth({ password, token });