4 writes to AppendTrailingSlash
Microsoft.AspNetCore.Routing.Tests (4)
DefaultLinkGeneratorProcessTemplateTest.cs (3)
414
s.Configure<RouteOptions>(o => o.
AppendTrailingSlash
= true);
448
o.
AppendTrailingSlash
= true;
621
s.Configure<RouteOptions>(o => o.
AppendTrailingSlash
= false);
RouteCollectionTest.cs (1)
700
options.
AppendTrailingSlash
= appendTrailingSlash;
3 references to AppendTrailingSlash
Microsoft.AspNetCore.Routing (3)
DefaultLinkGenerator.cs (1)
63
AppendTrailingSlash = routeOptions.Value.
AppendTrailingSlash
,
RouteCollection.cs (2)
154
if (!string.IsNullOrEmpty(url) && (_options.LowercaseUrls || _options.
AppendTrailingSlash
))
176
if (_options.
AppendTrailingSlash
&& !urlWithoutQueryString.EndsWith('/'))