Skip to content

Fix authenticated redirect loops when no organization resolves - #270

Merged
shaply merged 3 commits into
mainfrom
codex/fix-no-organization-redirect-loop
Sep 28, 2026
Merged

shaply merged 3 commits into
mainfrom
codex/fix-no-organization-redirect-loop

Conversation

@shaply

@shaply shaply commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Closes #259.

Authenticated requests to /, /events, and /joinrequeststatus previously redirected back to / when no organization resolved, creating a loop. They now share organization resolution that redirects to an unguarded /organization-not-found page. 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.0 for the existing ES5 target. Independent code review found no further issues. Full build and Playwright were not run.

@netlify

netlify Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for servicestart ready!

Name Link
🔨 Latest commit 41cbf69
🔍 Latest deploy log https://app.netlify.com/projects/servicestart/deploys/6aba8ecc249e4f0008016efd
😎 Deploy Preview https://deploy-preview-270--servicestart.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@shaply shaply mentioned this pull request Sep 28, 2026
10 tasks done
@shaply
shaply merged commit e528dde into main Sep 28, 2026
25 checks passed

This branch was successfully deployed

1 active deployment
Preview — 41cbf691 Deployed Sep 28, 2026 by shaply via drop-db #254
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.

Fix Redirect Loop When No Organization Resolves for a Logged-In User

2 participants