Repository navigation
Fix authenticated redirect loops when no organization resolves - #270
Merged
Merged
Conversation
✅ Deploy Preview for servicestart ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VeYmbN1aRFTdeZM8vU2cC3
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #259.
Authenticated requests to
/,/events, and/joinrequeststatuspreviously redirected back to/when no organization resolved, creating a loop. They now share organization resolution that redirects to an unguarded/organization-not-foundpage. The destination uses static server-rendered markup and is excluded from membership navigation redirects.Events now uses the existing membership guard, preserving host fallback and sending nonmembers to join-request status. Removed unreachable dashboard membership handling. This is independent of #268 and uses the same unbranded missing-organization behavior without modifying its auth-page work.
Validation: 24 auth/page regression tests pass against real PostgreSQL, including all three missing-organization entrypoints, terminal rendering, valid members, and nonmembers. Full ESLint and changed-file Prettier pass. TypeScript passes with
--ignoreDeprecations 6.0for the existing ES5 target. Independent code review found no further issues. Full build and Playwright were not run.