-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
area-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor Componentsfeature-blazor-builtin-componentsFeatures related to the built in components we ship or could ship in the futureFeatures related to the built in components we ship or could ship in the future
Description
Hi i miss the route management option on blazor server side like it was on mvc or razor pages.
at the moment we can give the following types:
bool, datetime, decimal, double, float, guid, int, logn
Could use more options, e.g. regex
@page "/{culture:regex(^[a-zA-Z]{{2}}(-[a-zA-Z+]{{2}})?$)=pl}";
It would also be useful to define default values when there is empty content
It's also very fun to create your own content as described here.
https://www.learnrazorpages.com/advanced/custom-constraints
This allows us to create SEO friendly links that make it easier for users to enter.
Let me know what you think, I think adding a regex and a default value is a minute. I was able to find something like that.

Metadata
Metadata
Assignees
Labels
area-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor Componentsfeature-blazor-builtin-componentsFeatures related to the built in components we ship or could ship in the futureFeatures related to the built in components we ship or could ship in the future