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

Add dynamic meta to dynamic routes #417

Open
3 tasks done
SelfhostedPro opened this issue May 17, 2023 · 0 comments
Open
3 tasks done

Add dynamic meta to dynamic routes #417

SelfhostedPro opened this issue May 17, 2023 · 0 comments

Comments

@SelfhostedPro
Copy link

Description

If there's not already a way that's undocumented, it's not possible to set dynamic metadata on dynamic routes. It would be really nice to be able to add this info so that it can easily be referenced.

Suggested solution

If you have a route with params: [name].vue it would be great to be able to sub it in the route block. ie:

<route lang="yaml">
    meta:
        title: {{ name }}
        layout: default
</route>

or

<route lang="yaml">
    meta:
        title: $name
        layout: default
</route>

Alternative

No response

Additional context

`

Validations

  • Follow the Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant