Skip to content
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

Some of dynamic routes are skipped in routesNames #75

Closed
Jassmin586 opened this issue Feb 27, 2023 · 3 comments
Closed

Some of dynamic routes are skipped in routesNames #75

Jassmin586 opened this issue Feb 27, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@Jassmin586
Copy link

I've upgrade nuxt-typed-router from 2.2.1 version to 3.0.1.

In project I've structure with [slug].vue or categories/[slug].vue.

Before upgrade - routesNames.categoriesSlug exists, after upgrade to 3.0.1 this key disappeared.

"nuxt-typed-router": "^3.0.1"
"@nuxtjs/i18n": "^8.0.0-beta.6"

image
image
image

I think that [slug].vue on root may be affect on others nested */[slug].vue routes. When I change [slug].vue on root to [page].vue - others keys for */[slug].vue appear.

image

@victorgarciaesgi
Copy link
Owner

Hi thanks for the report! I will look at this it may have been filtered out

@victorgarciaesgi victorgarciaesgi added the bug Something isn't working label Feb 27, 2023
@victorgarciaesgi
Copy link
Owner

Okay found it, it was due to the removal of prefixed routes like /en/xxx. It would recognize /category/:slug as a prefixed route for /:slug.
I've improved the matcher to take only the registered locales into account for the filter

@victorgarciaesgi
Copy link
Owner

Fixed in v3.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants