diff --git a/apps/builder/src/features/account/components/UserPreferencesForm.tsx b/apps/builder/src/features/account/components/UserPreferencesForm.tsx index 2515cac94..e2d2d9aa2 100644 --- a/apps/builder/src/features/account/components/UserPreferencesForm.tsx +++ b/apps/builder/src/features/account/components/UserPreferencesForm.tsx @@ -51,7 +51,14 @@ export const UserPreferencesForm = () => { const updateLocale = (locale: keyof typeof localeHumanReadable) => () => { document.cookie = `NEXT_LOCALE=${locale}; path=/; max-age=31536000` - router.replace(router.pathname, undefined, { locale }) + router.replace( + { + pathname: router.pathname, + query: router.query, + }, + undefined, + { locale } + ) } const currentLanguage = getLanguage()