Skip to content

ApiVersionRouteConstraint Always Returns False for Url Generation #19

Closed
@commonsensesoftware

Description

@commonsensesoftware

The ApiVersionRouteConstraint always returns false when Match is called for URL generation. This breaks URL generation features provided by the UrlHelper and the numerous extensions built on top of it.

For example, assume a route named HelloWorld:

api/v{version:apiVersion}/helloworld

Then:

Url.Link( "HelloWorld", new { version = "1" } );

Should generate:

api/v1/helloworld

However, an exception is thrown instead.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions