17143 language switcher refactor push
This commit is contained in:
@@ -112,9 +112,11 @@ const Header = (props) => {
|
||||
.join("&")
|
||||
: "";
|
||||
|
||||
router.push(router.pathname + queryString, undefined, {
|
||||
locale: switchLocale,
|
||||
});
|
||||
// router.push(router.pathname + queryString, undefined, {
|
||||
// locale: switchLocale,
|
||||
// });
|
||||
|
||||
router.push(router.asPath, router.asPath, { locale: switchLocale });
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user