Skip to content

Commit acea87a

Browse files
kishan.anemrynowak
kishan.anem
authored andcommitted
IUrlHelper and support for RouteOptions.LowercaseUrls
changes are made as suggestions. @rynowak #518 #Issue: aspnet/Mvc#7720
1 parent cb77c17 commit acea87a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/Microsoft.AspNetCore.Routing/RouteOptions.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ namespace Microsoft.AspNetCore.Routing
1010
public class RouteOptions
1111
{
1212
/// <summary>
13-
/// Gets or sets a value indicating whether all generated URLs are lower-case. it doesn't include the query string.
13+
/// Gets or sets a value indicating whether all generated paths URLs are lower-case.
14+
/// Use <see cref="LowercaseQueryStrings" /> to configure the behavior for query strings.
1415
/// </summary>
1516
public bool LowercaseUrls { get; set; }
1617

1718
/// <summary>
18-
/// Gets or sets a value indicating whether all generated QUERY STRINGS are lower-case. property will when LowercaseUrls true.
19+
/// Gets or sets a value indicating whether a generated query strings are lower-case.
20+
/// This property will be unless <see cref="LowercaseUrls" /> is also <c>true</c>
1921
/// </summary>
2022
public bool LowercaseQueryStrings { get; set; }
2123

test/Microsoft.AspNetCore.Routing.Tests/RouteCollectionTest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,8 @@ private static Mock<IRouter> CreateRoute(
701701

702702
private static Action<RouteOptions> GetRouteOptions(
703703
bool lowerCaseUrls = false,
704-
bool appendTrailingSlash = false, bool lowercaseQueryStrings = false)
704+
bool appendTrailingSlash = false,
705+
bool lowercaseQueryStrings = false)
705706
{
706707
return (options) =>
707708
{

0 commit comments

Comments
 (0)