500 Infinite redirect in navigation guard
Hello guys, I'm struggling with a global middleware I created to handle some 301 redirects. I've simplified the structure to debug it and I got to this point:
In order to reproduce the issue I followed exactly these steps:
Any idea? Am I missing something about the logical working of a middleware?
In order to reproduce the issue I followed exactly these steps:
npx nuxi init democd demoyarn install(Nuxt 3.4.1)- created
directory and moved themiddlewareredirects.global.tsfile to it - created
pagesdirectory and addedindex.vueandabout.vue yarn dev- open the following url in your browser:
http://localhost:3000/old
=> "500 Infinite redirect in navigation guard"
navigateTo('something') something goes wrong.Any idea? Am I missing something about the logical working of a middleware?