mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 03:29:35 +00:00
fix(frontend): provided href invalid error
This commit is contained in:
@@ -20,7 +20,7 @@ const App = ({ Component, pageProps, ...appProps }) => {
|
||||
useEffect(() => {
|
||||
const storedLang = localStorage.getItem("lang");
|
||||
if (router.locale ?? "en" !== storedLang ?? "en") {
|
||||
router.push(router.pathname, router.pathname, {
|
||||
router.push(router.asPath, router.asPath, {
|
||||
locale: storedLang ?? "en",
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user