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}`