You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i came to the need of having to map an enum parameter to an url parameter.
Like:
Possible Values for FooType = ['bigFoo', 'littleFoo', 'specialFoo', 'dumbFoo', 'otherFoo']
So a route using a FooType Parameter could look like this:
The best way to implement this would be a 1:1 Mapping defined in the route definition. For now i have to either create a lot of routes or use the displayed values and do the mapping everywhere i want to use the parameter.
The text was updated successfully, but these errors were encountered:
@Harper04 What is wrong about creating different routes for different things? If you need some reusability you can create a function that returns the route object for you
Sorry, i tend to not respond to messages i consider off topic.
Your response did question my use case which my collegues and i consider to be valid. In general messages like i have a problem with X, why dont you use Z are not helpful for the matter.
Furthermore your response did little to address my problem, which may be my fault if i was not clear enough. I don't want to seperate different things... URLs are no implementation detail, they are user facing and used by search engines, so a mapping is a valid use case.
Feature request
Hi,
i came to the need of having to map an enum parameter to an url parameter.
Like:
Possible Values for
FooType = ['bigFoo', 'littleFoo', 'specialFoo', 'dumbFoo', 'otherFoo']
So a route using a
FooType
Parameter could look like this:For usabillity, SEO, requirements, etc. reasons i need to show values which the user can relate to.
The best way to implement this would be a 1:1 Mapping defined in the route definition. For now i have to either create a lot of routes or use the displayed values and do the mapping everywhere i want to use the parameter.
The text was updated successfully, but these errors were encountered: