mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
Refactor locale redirection logic in LocaleRedirector
This commit is contained in:
1 parent
5dba69f30a
commit
9a3f64fcd6
1 file changed
+1
-1
@@ -21,6 +21,6 @@
|
|||||||
`/${currentPath?.locale}`,
|
`/${currentPath?.locale}`,
|
||||||
bestLocale === undefined ? "" : `/${bestLocale}`
|
bestLocale === undefined ? "" : `/${bestLocale}`
|
||||||
)
|
)
|
||||||
: `/${bestLocale}${window.location.pathname}`;
|
: `${bestLocale ? `/${bestLocale}` : ""}${window.location.pathname}`;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
Reference in new issue
Block a user