Skip to content

fix: redirect personal users to valid landing page after authentication#330

Open
iamraghs wants to merge 2 commits into
algora-io:mainfrom
iamraghs:fix/github-login-redirect-404
Open

fix: redirect personal users to valid landing page after authentication#330
iamraghs wants to merge 2 commits into
algora-io:mainfrom
iamraghs:fix/github-login-redirect-404

Conversation

@iamraghs

@iamraghs iamraghs commented Jun 6, 2026

Copy link
Copy Markdown

Fixes #329

After signing in with GitHub, users were being redirected to /home, which doesn't exist as a top-level route (it's only available under /:org_handle/home). This caused a 404 right after login.

While investigating, I also found that several other common URLs users might try were returning 404:

/home
/dashboard
/profile
/settings
/users/yourhandle
None of these had top-level routes, so I added them.

Changes
Post-login redirect — signed_in_path_from_context("personal") now redirects to / instead of /home. The root path is the actual homepage and works for everyone.

New route redirects for /home, /dashboard, /settings — these now redirect to existing pages that work (/, /, /user/settings).

New /profile route — checks if you're logged in and sends you to your profile page (e.g. /yourhandle/profile). If you're not logged in, it sends you to the login page.

New /users/:handle route — lets you visit someone's profile via /users/theirhandle (works the same as /theirhandle).

That covers everything reported in the issue.

@CLAassistant

CLAassistant commented Jun 6, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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.

[Bug] Successful GitHub login redirects to /home which returns 404

2 participants