Skip to content

fix(web): persist oauth return path - #107

Merged
austeyen merged 3 commits into
mainfrom
austeyen/fix-discord-login-redirect-uri
Aug 20, 2026
Merged

fix(web): persist oauth return path #107
austeyen merged 3 commits into
mainfrom
austeyen/fix-discord-login-redirect-uri

Conversation

@austeyen

@austeyen austeyen commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Unauthenticated wiki (and other OIDC) logins bounce /oauth/authorize?…&redirect_uri=… to /auth/login. That return URL only lived in React Router location.state, which does not survive the first replace, a refresh, or Discord — so both email and Discord sign-in landed on a stripped authorize page instead of sending the user back to the wiki.
  • Stash the full authorize URL in sessionStorage at the bounce, then restore { pathname, search, hash } after any successful login. Stop putting that URL in Discord's state query param.

BK1031
BK1031 previously approved these changes Aug 20, 2026
@austeyen austeyen changed the title fix(web): persist oauth return path across discord login fix(web): persist oauth return path Aug 20, 2026
@austeyen
austeyen merged commit 81ca098 into main Aug 20, 2026
19 checks passed
@austeyen
austeyen deleted the austeyen/fix-discord-login-redirect-uri branch August 20, 2026 08:22
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.

2 participants