diff --git a/frontend/src/routes/login.tsx b/frontend/src/routes/login.tsx index cb7963f2..3038d80f 100644 --- a/frontend/src/routes/login.tsx +++ b/frontend/src/routes/login.tsx @@ -4,10 +4,9 @@ import { createFileRoute } from '@tanstack/react-router' export const Route = createFileRoute('/login')({ beforeLoad: async () => { const loginUrl = await userApi.v1UserLoginGet({ - redirectUrl: `${window.location.origin}/auth/callback?redirect=${encodeURIComponent("/")}` + redirectUrl: `${window.location.origin}/auth/callback?redirect=${encodeURIComponent("/dashboard")}` }).then((res) => res.loginUrl) window.location.href = loginUrl } - })