Refactor locale redirection logic in LocaleRedirector

This commit is contained in:
TrèsAbhi authored and GitHub committed 2026-02-11 09:31:48 -06:00
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>