Skip to content

fix(auth): redirect to /home by default after OAuth login#55

Merged
dmeiser merged 1 commit into
mainfrom
fix/oauth-redirect-to-home
Jul 12, 2026
Merged

fix(auth): redirect to /home by default after OAuth login#55
dmeiser merged 1 commit into
mainfrom
fix/oauth-redirect-to-home

Conversation

@dmeiser

@dmeiser dmeiser commented Jul 12, 2026

Copy link
Copy Markdown
Owner

After social login Cognito redirects back to the site root (/). The OAuth redirect handler only redirected when sessionStorage.oauth_redirect was set, so users who logged in from the public landing page stayed on / instead of reaching /home.

Always redirect to /home (or the saved redirect) after the OAuth flow completes. Update the unit test to expect the new default behavior.

After social login Cognito redirects back to the site root (/). The
OAuth redirect handler only redirected when sessionStorage.oauth_redirect
was set, so users who logged in from the public landing page stayed on /
instead of reaching /home.

Always redirect to /home (or the saved redirect) after the OAuth flow
completes. Update the unit test to expect the new default behavior.
@dmeiser
dmeiser merged commit 73abf79 into main Jul 12, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant