Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Respect the case of the asp-page parameter value supplied to the anchor tag helper #6393

Closed
mikebrind opened this issue Jun 13, 2017 · 2 comments

Comments

@mikebrind
Copy link

mikebrind commented Jun 13, 2017

The anchor tag helper ignores the case of the value applied to the asp-page parameter and always capitalizes it when it is rendered.

<a asp-page="page">Click</a> renders as <a href="/Page">Click</a> so does <a asp-page="PAGE">

IMO, it should respect the casing of the provided value, as with the controller, action etc attributes.

@Eilon
Copy link
Member

Eilon commented Jun 22, 2017

Routing in general is case-insensitive, so there are no plans to change this behavior.

There is a routing setting to make all URLs lowercase, if that's all you need: https://github.com/aspnet/Routing/blob/032bcf43b2cefe641fc6ee9ef3ab0769024a182c/src/Microsoft.AspNetCore.Routing/RouteOptions.cs#L15

@Eilon Eilon closed this as completed Jun 22, 2017
@mikebrind
Copy link
Author

@Eilon Thanks for the link. That is useful.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants