nicer redirect after changing language; rename route

This commit is contained in:
2025-08-13 11:32:24 +02:00
parent 652ea26b32
commit 5755109dc8
2 changed files with 3 additions and 3 deletions

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.reload();
window.location.href = window.location.href;
})
}