Skip to content

Conversation

@japint
Copy link
Collaborator

@japint japint commented Jun 15, 2025

Note

🛠️ What changed

  • Prevented redirect to / when unauthenticated users visit public pages (/, /explore, /blog)
  • Moved publicPaths outside the component to clean up useEffect dependencies
  • Used window.location.pathname to check the current route

❓ Why

  • Users were being redirected from public pages even when no login was required. This fixes that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants