Closed pranavkm closed 5 years ago
Does you application also have a conventional route? I don't understand how you're setting that result in 2.1
Does you application also have a conventional route?
Yup, there's a conventional route with the default template. Removing it makes the two versions behave identically.
hmm that's interesting, I would expect the link generator to see both templates.
OK. this is definitely expected behaviour in 2.2
What's happening is that in the 2.1 case the conventional route (without constraint) can successfully generate a URL - because that's what conventional routes do.
Conventional routes in endpoint routing don't link to actions that don't exist.
I have an
IRouteConstraint
like so:The action:
and the view:
With 2.1 routing, the output is so:
With 2.2 routing, the output is so:
Might be the same thing as https://github.com/aspnet/Routing/issues/728. Filing this so we're aware of the difference in behavior.