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

Routing - Define custom regex for dynamic page params #15323

Closed
3 of 4 tasks
manniL opened this issue Nov 2, 2022 · 1 comment · Fixed by nuxt/framework#8633
Closed
3 of 4 tasks

Routing - Define custom regex for dynamic page params #15323

manniL opened this issue Nov 2, 2022 · 1 comment · Fixed by nuxt/framework#8633

Comments

@manniL
Copy link
Member

manniL commented Nov 2, 2022

Describe the feature

Right now, dynamic urls generated via file-based routing in pages use the "default" regex from vue router for their params. To change that, hooks like pages:extend would be necessary.

Instead of that, it would be great to provide the regex otherwise, e.g. via page meta or (maybe even file-name), if possible.

Related: #15311

Additional information

  • Would you be willing to help implement this feature?
  • Could this feature be implemented as a module?

Final checks

Copy link
Member

I think it would be good to support this via definePageMeta. See also #13408 for previous discussion about doing this via FS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants