Skip to content

Commit

Permalink
Send a callbackUrl to /sign-in
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredpalmer committed Jun 21, 2023
1 parent 0117cdf commit 2dad717
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ export async function Header() {
<UserMenu user={session.user} />
) : (
<Button variant="link" asChild className="-ml-2">
<Link href="/sign-in" passHref>
Login
</Link>
<Link href="/sign-in?callbackUrl=/">Login</Link>
</Button>
)}
</div>
Expand Down

0 comments on commit 2dad717

Please sign in to comment.