This commit is contained in:
hailin 2025-04-18 12:38:38 +08:00
parent 71ff245e28
commit 8d0f8a6ba9
1 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ export default async function Login({
if (error) {
console.log(`==================> ${localeString}/login?message=${error.message}`);
return redirect(`${localeString}/login?message=${error.message}`)
return redirect(`/${localeString}/login?message=${error.message}`)
}
const { data: homeWorkspace, error: homeWorkspaceError } = await supabase
@ -98,7 +98,7 @@ export default async function Login({
}
console.log("2======>Redirecting to workspace:", homeWorkspace.id)
return redirect(`${localeString}/${homeWorkspace.id}/chat`)
return redirect(`/${localeString}/${homeWorkspace.id}/chat`)
}
const getEnvVarOrEdgeConfigValue = async (name: string) => {