From f5b47577d7e639c9681712bcaabc4202ceabf682 Mon Sep 17 00:00:00 2001 From: Henry Date: Thu, 21 May 2026 12:33:59 +0100 Subject: [PATCH] fix: respect redirect param on login and signup pages --- apps/web/src/views/auth/login/index.tsx | 2 +- apps/web/src/views/auth/signup/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/src/views/auth/login/index.tsx b/apps/web/src/views/auth/login/index.tsx index 768bd5a8..793597e5 100644 --- a/apps/web/src/views/auth/login/index.tsx +++ b/apps/web/src/views/auth/login/index.tsx @@ -26,7 +26,7 @@ export default function LoginPage() { const { data } = authClient.useSession(); - if (data?.user.id) router.push("/boards"); + if (data?.user.id) router.push(redirect ?? "/boards"); return ( <> diff --git a/apps/web/src/views/auth/signup/index.tsx b/apps/web/src/views/auth/signup/index.tsx index 9ea134b3..59cd5f76 100644 --- a/apps/web/src/views/auth/signup/index.tsx +++ b/apps/web/src/views/auth/signup/index.tsx @@ -21,7 +21,7 @@ export default function SignUpPage() { const { data } = authClient.useSession(); - if (data?.user.id) router.push("/boards"); + if (data?.user.id) router.push(redirect ?? "/boards"); const handleMagicLinkSent = (value: boolean, recipient: string) => { setIsMagicLinkSent(value);