17143 language switcher refactor push

This commit is contained in:
2025-06-17 06:44:53 +01:00
parent 3b65133ea0
commit e2df26c935
3 changed files with 22 additions and 6 deletions
+5 -3
View File
@@ -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 (