Skip to content

fix: prevent unauthenticated search redirect 404#7

Merged
LeoMartinDev merged 2 commits intomainfrom
fix/auth-search-login-redirect
Mar 2, 2026
Merged

fix: prevent unauthenticated search redirect 404#7
LeoMartinDev merged 2 commits intomainfrom
fix/auth-search-login-redirect

Conversation

@LeoMartinDev
Copy link
Copy Markdown
Owner

@LeoMartinDev LeoMartinDev commented Mar 2, 2026

Summary

  • fix login redirect handling for unauthenticated search so the full destination URL (/search?...) is preserved and replayed correctly after sign-in
  • switch post-login navigation to href and sanitize redirect values to internal absolute paths only
  • invalidate cached session data after successful login to avoid stale unauthenticated state causing redirect loops

Use full href-based post-login navigation and sanitize redirect params so unauthenticated search redirects reliably land on login and return to the original search URL without 404 loops.

Made-with: Cursor
@LeoMartinDev LeoMartinDev self-assigned this Mar 2, 2026
@LeoMartinDev LeoMartinDev merged commit 4212d93 into main Mar 2, 2026
1 check passed
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