diff --git a/packages/website/src/components/LocaleRedirector.astro b/packages/website/src/components/LocaleRedirector.astro index 68f61e45b..3839cd86e 100644 --- a/packages/website/src/components/LocaleRedirector.astro +++ b/packages/website/src/components/LocaleRedirector.astro @@ -21,6 +21,6 @@ `/${currentPath?.locale}`, bestLocale === undefined ? "" : `/${bestLocale}` ) - : `/${bestLocale}${window.location.pathname}`; + : `${bestLocale ? `/${bestLocale}` : ""}${window.location.pathname}`; }