From 53371f3523f6b51d962113e681081875e3ae730f Mon Sep 17 00:00:00 2001 From: hailin Date: Mon, 21 Apr 2025 01:35:46 +0800 Subject: [PATCH] . --- components/utility/home-redirector.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/utility/home-redirector.tsx b/components/utility/home-redirector.tsx index cb3dfe4..03949ba 100644 --- a/components/utility/home-redirector.tsx +++ b/components/utility/home-redirector.tsx @@ -34,7 +34,7 @@ export default function HomeRedirector() { const pathLocale = currentPath.split('/')[1] const hasLocaleInPath = isValidLocale(pathLocale) - if (!hasLocaleInPath) { + if (currentPath === "/" && !hasLocaleInPath) { const newPath = `/${preferred}${currentPath}` console.log('[HomeRedirector] Redirecting to:', newPath) router.replace(newPath)