From 2191b8ed9a3686cdc956bc5f9e834e0b13b8abaf Mon Sep 17 00:00:00 2001 From: kurone-kito Date: Sat, 3 Aug 2024 12:49:42 +0900 Subject: [PATCH] test: added the trace --- nodePackages/web/src/modules/useLanguageHref.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/nodePackages/web/src/modules/useLanguageHref.ts b/nodePackages/web/src/modules/useLanguageHref.ts index 518ec0ba..ef944f58 100644 --- a/nodePackages/web/src/modules/useLanguageHref.ts +++ b/nodePackages/web/src/modules/useLanguageHref.ts @@ -14,6 +14,7 @@ export const useLanguageHref = (target: Language) => { const baseUrl = import.meta.env.SERVER_BASE_URL; const location = useLocation(); const realPath = location.pathname.replace(baseUrl, ''); + console.warn('realPath', realPath); return createMemo(() => regexp.test(realPath) ? realPath.replace(regexp, target)