diff --git a/static/serve/theme.js b/static/serve/theme.js index 31640e7..3859b57 100644 --- a/static/serve/theme.js +++ b/static/serve/theme.js @@ -13,7 +13,7 @@ function setLanguageCookie() { // set lang, if lang attribute doesn't exit set default en let lang = langToggle.getAttribute('lang') ? langToggle.getAttribute('lang') : 'en'; document.cookie = "language=" + lang; - window.location.href = window.location.href; + window.location.assign(window.location.href); }) }