From a7e78ad580d543dc02a320fe2c1c70216961d6f0 Mon Sep 17 00:00:00 2001 From: Henry <30578846+hjball@users.noreply.github.com> Date: Thu, 21 May 2026 21:36:02 +0100 Subject: [PATCH] fix: respect redirect param on login and signup pages (#504) --- 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);