From 4f5d2edcdfd28cf56b6c1e486021ce75dcaba82c Mon Sep 17 00:00:00 2001 From: hailin Date: Tue, 22 Apr 2025 20:15:37 +0800 Subject: [PATCH] . --- components/chat/chat-hooks/use-chat-handler.tsx | 1 - components/utility/global-state.tsx | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/components/chat/chat-hooks/use-chat-handler.tsx b/components/chat/chat-hooks/use-chat-handler.tsx index bc2fb7e..9eba82f 100644 --- a/components/chat/chat-hooks/use-chat-handler.tsx +++ b/components/chat/chat-hooks/use-chat-handler.tsx @@ -201,7 +201,6 @@ export const useChatHandler = () => { console.log("[use-chat-handler.tsx]...........localePrefix", localePrefix) - console.log("[use-chat-handler.tsx]...........homePath",localePrefix) return router.push(`${localePrefix}/${selectedWorkspace.id}/chat`) // return router.push(`/${locale}/${selectedWorkspace.id}/chat`) diff --git a/components/utility/global-state.tsx b/components/utility/global-state.tsx index ed211bc..68074ee 100644 --- a/components/utility/global-state.tsx +++ b/components/utility/global-state.tsx @@ -54,7 +54,7 @@ export const GlobalState: FC = ({ children }) => { if (locales.includes(segment)) { locale = segment } - const homePath = locale === defaultLocale ? "/" : `/${locale}` + const homePath = locale === defaultLocale ? "/" : `${locale}`