Validate Dynamic Route Values #11536
Labels
area-mvc
Includes: MVC, Actions and Controllers, Localization, CORS, most templates
Done
This issue has been fixed
Validation
This issue is used to track validation efforts
Milestone
Summary
Background: #4221
PR: #8955
It's super common in the older versions of MVC to subclass
Route
and implement dynamic generation of route values (usually using a database).Ex:
product}/{**slug}
IRouter
that does a database lookupThe key of this is that the user doesn't really write any significant routing functionality, they just want to map a parameter to a controller/action
Checklist
Example: https://github.com/aspnet/AspNetCore/pull/8955/files#diff-5a433b2664ee6b8ae7b9717bc51d3518
DynamicRouteValueTransformer
for controllersDynamicRouteValueTransformer
for pages[Host]
or[Consumes]
in conjunction with this featureThe text was updated successfully, but these errors were encountered: