-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Nuxt Bridge Middleware Chain Not Breaking on navigateTo(), abortNavigation() #1101
Comments
Looking at the comments on this issue, etc., this behavior appears to be as expected. |
Hey @wattanx thank you for the quick response. The issue I'm describing is that child middleware shouldn't be called at all. I've prepared another repo to show the issue There are 2 pages:
authorized middleware always redirects user to home page because user is not authorized. If you go to /dashboard page you will see in console
|
I finally understood. |
i have the same problem in nuxt bridge 3.3.1 |
Environment
Reproduction
Reproduction repo: https://github.com/atomiomi/nuxt-bridge-middlewares
The repo has README with steps to reproduce
Describe the bug
In Nuxt Bridge, when a middleware uses the navigateTo(), abortNavigation() utility to redirect the user, the middleware chain does not break as expected. This behavior results in subsequent middlewares being called, potentially leading to errors. This issue is particularly problematic in scenarios where a root middleware checks for user authentication and attempts to block access to a page.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: