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
We have started using routeRules consistently for our redirects. Personally, I really like the concise format of the feature.
However, it seems that the routes are generated in a way that Vue Router still deems it necessary to create warnings in the console when using linking to any given path using NuxtLink. We have these rules in place to create simple URLs that redirect to complex search queries on our products page. Likewise, we link to the "simplified" routes in our footer for SEO purposes.
For example, we might have a routeRule like the following: '/media/backgrounds': { redirect: { to: '/media/filters/category/Backgrounds', statusCode: 301 } },
We use <NuxtLink to="/media/backgrounds">Backgrounds</NuxtLink> in our footer, but receive an error saying: [Vue Router warn]: No match found for location with path "/media/backgrounds"
I have provided a minimal reproduction that clearly shows what is happening, but please let me know if anymore information is needed.
Thanks!
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
Environment
Reproduction
https://stackblitz.com/edit/github-vppyrh-tbnswt?file=app.vue
Describe the bug
We have started using routeRules consistently for our redirects. Personally, I really like the concise format of the feature.
However, it seems that the routes are generated in a way that Vue Router still deems it necessary to create warnings in the console when using linking to any given path using
NuxtLink
. We have these rules in place to create simple URLs that redirect to complex search queries on our products page. Likewise, we link to the "simplified" routes in our footer for SEO purposes.For example, we might have a routeRule like the following:
'/media/backgrounds': { redirect: { to: '/media/filters/category/Backgrounds', statusCode: 301 } },
We use
<NuxtLink to="/media/backgrounds">Backgrounds</NuxtLink>
in our footer, but receive an error saying:[Vue Router warn]: No match found for location with path "/media/backgrounds"
I have provided a minimal reproduction that clearly shows what is happening, but please let me know if anymore information is needed.
Thanks!
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: