Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoid infinite redirection #1487

Merged
merged 2 commits into from
Jan 29, 2024
Merged

avoid infinite redirection #1487

merged 2 commits into from
Jan 29, 2024

Conversation

thehouseisonfire
Copy link
Contributor

@thehouseisonfire thehouseisonfire commented Jan 29, 2024

Hi, I had some trouble with this example once I added the '.global' suffix to the file (the whole application requires credentials) where I was (I assume at least) getting an infinite redirection recursion to the /login route. Since this is a fairly common use for auth middlewares, I think making it more clear (either through code, a comment or a markdown tip) that applying it to '/login' causes that would avoid others falling into this little pitfall.

@posva posva merged commit ae2cf03 into vuejs:main Jan 29, 2024
4 of 5 checks 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.

2 participants