Skip to content

optional parameters #9150

Answered by jasonvarga
ivang76 asked this question in Q&A
Dec 7, 2023 · 2 comments · 6 replies
Discussion options

You must be logged in to vote

If a value is missing, it'll just be filtered out of the route.

For example if you have a route like this: page/{slug}/{special_id}
And an entry with a special_id, its url would be: page/my-slug/my-special-id
An entry without a special it, its url would be page/my-slug

Is special_id a real field or are you defining it in the view model?

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by ivang76
Comment options

You must be logged in to vote
6 replies
@ivang76
Comment options

@jasonvarga
Comment options

@ivang76
Comment options

@jasonvarga
Comment options

@ivang76
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants