even nicer redirect
This commit is contained in:
@@ -13,7 +13,7 @@ function setLanguageCookie() {
|
|||||||
// set lang, if lang attribute doesn't exit set default en
|
// set lang, if lang attribute doesn't exit set default en
|
||||||
let lang = langToggle.getAttribute('lang') ? langToggle.getAttribute('lang') : 'en';
|
let lang = langToggle.getAttribute('lang') ? langToggle.getAttribute('lang') : 'en';
|
||||||
document.cookie = "language=" + lang;
|
document.cookie = "language=" + lang;
|
||||||
window.location.href = window.location.href;
|
window.location.assign(window.location.href);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user