Skip to content

[feat] Adds login redirect after authentication#1689

Open
neurocis wants to merge 2 commits into
agent0ai:readyfrom
neurocis:feat/login-forward
Open

[feat] Adds login redirect after authentication#1689
neurocis wants to merge 2 commits into
agent0ai:readyfrom
neurocis:feat/login-forward

Conversation

@neurocis
Copy link
Copy Markdown
Contributor

@neurocis neurocis commented Jun 3, 2026

Re-submit of PR #1683

Improves user experience by redirecting users to their intended page upon successful login. Implements secure URL validation to prevent open redirect vulnerabilities and supports both server-side and client-side redirects.

How to Test
Log out and attempt to access a protected page; verify redirection to login with a next parameter.
Log in successfully; confirm automatic redirection to the original protected page.
Test with a malicious next URL to ensure redirection only occurs to safe, same-origin paths.
Breaking Changes
None.

neurocis and others added 2 commits June 2, 2026 21:54
Return users to their original requested page after login, with robust same-origin validation to prevent open redirects.

Co-Author Agent Hero <agent-hero@neurocis.ai>
…irects

Co-authored-by: Agent Hero <agent.hero@neurocis.ai>
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.

1 participant