Skip to content
This repository was archived by the owner on Nov 27, 2018. It is now read-only.

Commit 695fb00

Browse files
kishan.anemrynowak
kishan.anem
authored andcommitted
IUrlHelper and support for RouteOptions.LowercaseUrls
IUrlHelper and support for RouteOptions.LowercaseUrls #issue : aspnet/Mvc#7720
1 parent 72a7c31 commit 695fb00

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Microsoft.AspNetCore.Routing/RouteCollection.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,11 @@ private VirtualPathData NormalizeVirtualPath(VirtualPathData pathData)
154154
if (_options.LowercaseUrls)
155155
{
156156
urlWithoutQueryString = urlWithoutQueryString.ToLowerInvariant();
157+
158+
if (!string.IsNullOrEmpty(queryString))
159+
{
160+
queryString = queryString.ToLowerInvariant();
161+
}
157162
}
158163

159164
if (_options.AppendTrailingSlash && !urlWithoutQueryString.EndsWith("/"))

0 commit comments

Comments
 (0)