diff --git a/web/src/redux/actions/settings.ts b/web/src/redux/actions/settings.ts index 4cd61627..5e38773a 100644 --- a/web/src/redux/actions/settings.ts +++ b/web/src/redux/actions/settings.ts @@ -24,5 +24,6 @@ export const changeLanguage = (languageCode: Language["code"]) => { newPath = newPath.replace(new RegExp(`^/${language.code}`), ""); } - window.location.replace(newPath); + window.history.pushState({}, "", newPath); + window.location.href = newPath; };