fix(frontend): break redirect loop between root and organization routes - #5645
fix(frontend): break redirect loop between root and organization routes#5645jog1t wants to merge 1 commit into
Conversation
|
🚅 Deployed to the actors-pr-5645 environment in rivet-frontend
|
ReviewFix looks solid. It closes the two gaps that caused the loop: (Note: this replaces my earlier review comment on this PR, which was posted against the previous commit before Notes / things worth double-checking
Test coverageNo tests added. Given the repo's ban on No security concerns - all redirect targets are internal string literals, no open-redirect risk. |
8b068bc to
b6b34d5
Compare
/and/orgs/$organizationthat crashed the app with "Maximum update depth exceeded" (Sentry HUB-ZG). The org route bounced back to/, which immediately resolved the same org again.redirectToOrganizationand the org route, instead of looking up by id in one place and by slug in the other./new-orginstead of bouncing them to/or back to/loginwhile already signed in.Fixes HUB-ZG