-
Notifications
You must be signed in to change notification settings - Fork 2.1k
MapAreaRoute constraint not escaped #4846
Comments
I would like a solution when on this extension method the constraint would be built using a |
Good find |
I would like to do this issue |
MVC 1.1.x depending on Routing 1.1.x seems perfectly reasonable. Don't we need to do this for @kichalla 's RouteCreationException thing anyway? |
Yeah let's just fix this and have it be treated as a string. No idea why it was ever treated as a regex - I cannot possibly imagine that it was deliberate. |
Fixed by 6e5187c and aspnet/Routing@88de3d5 |
On this line:
Mvc/src/Microsoft.AspNetCore.Mvc.Core/Builder/MvcAreaRouteBuilderExtensions.cs
Line 134 in a78f77a
The area is a string that is used for the defaults, and the constraints. But in the case of constrains the string is evaluated as a regular expression. In my case the are looks like
"Orchard.Setup"
which would make it not work as expected because of the dot.The text was updated successfully, but these errors were encountered: