I define multiple middleware (including auth) on a page, as written in the provided link.
Currently, when a user is not authenticated, the auth middleware redirects them to the login page.
However, at the same time, the next middleware is also executed.
I think that it would be better if the next middleware were skipped when redirected by auth.
In fact, if we use navigateTo, the next middleware is skipped.
The Nuxt community also recommends using navigateTo.
However, with PR #79, it seems navigateTo is no longer usable when redirected.
Is there a problem with using this?
Environment
Nuxt Config
Reproduction
https://stackblitz.com/edit/nuxt-starter-4cwdoi?file=pages%2Ftest.vue
Describe the bug
I define multiple middleware (including auth) on a page, as written in the provided link. Currently, when a user is not authenticated, the auth middleware redirects them to the login page. However, at the same time, the next middleware is also executed.
I think that it would be better if the next middleware were skipped when redirected by auth. In fact, if we use navigateTo, the next middleware is skipped. The Nuxt community also recommends using navigateTo.
However, with PR #79, it seems navigateTo is no longer usable when redirected. Is there a problem with using this?
Additional context
No response
Logs
No response