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
If navigateTo(localePath('/')) in useLazyAsyncData is called before the useLocalePath composable, navigation does not occur server side. In the reproduction, if you click the link to page1 in the header the navigation is there. However, if you type in /page1 manually in the container you will see that you actually land there and not get redirected to index.
If you move const localePath = useLocalePath() to a line before useLazyAsyncData, the redirect will perform as expected on server side as well.
In the current state it just does nothing -> no navigation and no error.
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered:
Environment
Reproduction
https://stackblitz.com/edit/nuxt-starter-8ekrd9jd?file=pages%2Fpage1.vue
Describe the bug
If
navigateTo(localePath('/'))
in useLazyAsyncData is called before the useLocalePath composable, navigation does not occur server side. In the reproduction, if you click the link to page1 in the header the navigation is there. However, if you type in /page1 manually in the container you will see that you actually land there and not get redirected to index.If you move const localePath = useLocalePath() to a line before useLazyAsyncData, the redirect will perform as expected on server side as well.
In the current state it just does nothing -> no navigation and no error.
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: