-
Notifications
You must be signed in to change notification settings - Fork 462
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
Duplicate route names with prefix_and_default strategy and nuxt-child #292
Comments
Relevant generated routes: {
path: "/account",
component: _2479bbc0,
name: "undefined___default",
children: [{
path: "child",
component: _8329b026,
name: "account-child___en-us___default"
}, {
path: "child",
component: _8329b026,
name: "account-child___en-us"
}]
}, {
path: "/en-us/account",
component: _2479bbc0,
children: [{
path: "child",
component: _8329b026,
name: "account-child___en-us___default"
}, {
path: "child",
component: _8329b026,
name: "account-child___en-us"
}]
}, {
path: "/fr/account",
component: _2479bbc0,
children: [{
path: "child",
component: _8329b026,
name: "account-child___fr"
}]
} Problems:
|
undefined goes from or maybe some other similar place, didnt digged fully https://github.com/nuxt-community/nuxt-i18n/blob/dc668952c4501c2e0b95603dd838b47ec18db0b9/src/plugins/routing.js#L28 |
Yes, looks like routes with children are not supposed to have name because one is not supposed to navigate to such routes directly. |
Version
5.12.0
Reproduction link
https://codesandbox.io/s/q3lyoq6vkq
Steps to reproduce
Structure is following:
account.vue content
What is expected ?
no duplicate children route generated
What is actually happening?
duplicate children route generated
Additional comments?
Related #140
The text was updated successfully, but these errors were encountered: