Skip to content

Consider adding a way to use strict comparison for routes matching #4220

@Eilon

Description

@Eilon

From @PinpointTownes on February 6, 2017 4:3

http://stackoverflow.com/questions/42048770/asp-net-core-openiddict-throws-an-openid-connect-response-cannot-be-returned-fr

Consider this action:

[HttpPost("~/path")]
public IActionResult Test() => Empty();

Oddly, either the routing stack or MVC seems to consider /path/ requests as valid candidates for this route/action, which is incorrect as /path and /path/ are two different addresses.

Is there any particular reason for this (abusive) normalization?

/cc @Eilon @rynowak

Copied from original issue: aspnet/Mvc#5757

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templates

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions