This commit is contained in:
parent
38e095d61b
commit
4f5d2edcdf
|
|
@ -201,7 +201,6 @@ export const useChatHandler = () => {
|
||||||
|
|
||||||
console.log("[use-chat-handler.tsx]...........localePrefix", localePrefix)
|
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(`${localePrefix}/${selectedWorkspace.id}/chat`)
|
||||||
|
|
||||||
// return router.push(`/${locale}/${selectedWorkspace.id}/chat`)
|
// return router.push(`/${locale}/${selectedWorkspace.id}/chat`)
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ export const GlobalState: FC<GlobalStateProps> = ({ children }) => {
|
||||||
if (locales.includes(segment)) {
|
if (locales.includes(segment)) {
|
||||||
locale = segment
|
locale = segment
|
||||||
}
|
}
|
||||||
const homePath = locale === defaultLocale ? "/" : `/${locale}`
|
const homePath = locale === defaultLocale ? "/" : `${locale}`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue