Compare commits

...

1 Commits

Author SHA1 Message Date
Henry
f5b47577d7 fix: respect redirect param on login and signup pages 2026-05-21 12:33:59 +01:00
2 changed files with 2 additions and 2 deletions

View File

@@ -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 (
<>

View File

@@ -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);