From 9a3f64fcd692641681d3b43348711988495c5198 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Wed, 11 Feb 2026 09:31:48 -0600 Subject: [PATCH] Refactor locale redirection logic in LocaleRedirector --- packages/website/src/components/LocaleRedirector.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}`; }