mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +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}`,
|
||||
bestLocale === undefined ? "" : `/${bestLocale}`
|
||||
)
|
||||
: `/${bestLocale}${window.location.pathname}`;
|
||||
: `${bestLocale ? `/${bestLocale}` : ""}${window.location.pathname}`;
|
||||
}
|
||||
</script>
|
||||
Reference in new issue
Block a user