Fix locale routing (#247)

This commit is contained in:
Luke Vella 2022-07-27 16:29:00 +01:00 committed by GitHub
parent 870a4bb13d
commit 0f35bd0518
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 16 additions and 4 deletions

View file

@ -17,7 +17,6 @@ export const LanguageSelect: React.VoidFunctionComponent<{
Cookies.set("NEXT_LOCALE", e.target.value, {
expires: 365,
});
router.push(router.asPath, router.asPath, { locale: e.target.value });
onChange?.(e.target.value);
}}
>