You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can see Hello, foo! blinking on the browser before it gets redirected. Also, you can see the log onMounted: hello, foo! from the console.
Describe the bug
In a CSR application, when using a route middleware to redirect externally from a Nuxt page to another location (by using navigateTo with external: true), the setup script of the page where we apply the middleware is executed whereas it should not be (I believe?). As well as the lifecycle hooks such as onMounted. It's not the case when redirecting to an internal route.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
Environment
Nuxi 3.5.2
Reproduction
From https://stackblitz.com/edit/nuxt-starter-77e2za?file=README.md, click on
Go to foo
link on home page.You can see
Hello, foo!
blinking on the browser before it gets redirected. Also, you can see the logonMounted: hello, foo!
from the console.Describe the bug
In a CSR application, when using a route middleware to redirect externally from a Nuxt page to another location (by using
navigateTo
withexternal: true
), the setup script of the page where we apply the middleware is executed whereas it should not be (I believe?). As well as the lifecycle hooks such asonMounted
. It's not the case when redirecting to an internal route.Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: