-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ExtendRoutes/webpack/jiti do not process Vuex route.redirect... #8979
Comments
I have this problem too... just ignore redirect... UPD I changed "routes.push" -> "routes.unshift", add "sortRoutes" and it worked. |
redirect as a string works fine, but according to vue-router documentation, redirect could be a function either! |
@linqFR Thanks for the issue. I've put a fix in but I would recommend using https://github.com/nuxt-community/router-extras-module or https://github.com/nuxt-community/router-module instead if you want to take over more control of how the router behaves in a Nuxt context. |
@danielpost actually i m using http-proxy(-middleware) options : options.pathRewrite and options.onProxyReq |
Versions
Steps to reproduce
is processed in .nuxt /router.js to:
What is Expected?
as described in docs : https://nuxtjs.org/docs/2.x/configuration-glossary/configuration-router#extendroutes:
The schema of the route should respect the vue-router schema.
(vue-router schema)What is actually happening?
redirect is not processed by webpack and/or jiti...
The text was updated successfully, but these errors were encountered: