even nicer redirect

This commit is contained in:
2025-08-13 11:34:54 +02:00
parent 5755109dc8
commit e120d19dc8

View File

@@ -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);
})
}