1 override of PathBase
Microsoft.AspNetCore.Http (1)
Internal\DefaultHttpRequest.cs (1)
67public override PathString PathBase
77 writes to PathBase
HttpAbstractions.SampleApp (1)
Program.cs (1)
19request.PathBase = "/pathBase";
InProcessWebSite (2)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (1)
285ctx.Request.PathBase = "/base";
src\Servers\IIS\IIS\test\testassets\shared\WebSockets\TestStartup.cs (1)
55context.Request.PathBase = pathBase.Add(matchedPath);
Microsoft.AspNetCore.Components.Endpoints.Tests (3)
EndpointHtmlRendererTest.cs (3)
760ctx.Request.PathBase = "/base"; 791ctx.Request.PathBase = "/base"; 1659context.Request.PathBase = "/base";
Microsoft.AspNetCore.Http.Abstractions.Tests (2)
MapPathMiddlewareTests.cs (1)
241context.Request.PathBase = new PathString(basePath);
UsePathBaseExtensionsTests.cs (1)
233context.Request.PathBase = new PathString(pathBase);
Microsoft.AspNetCore.Http.Extensions.Tests (2)
UriHelperTests.cs (2)
89request.PathBase = new PathString("/un?escaped/base"); 104request.PathBase = new PathString(pathBase);
Microsoft.AspNetCore.Http.Results.Tests (9)
CreatedAtRouteOfTResultTests.cs (1)
182httpContext.Request.PathBase = new PathString("");
CreatedAtRouteResultTests.cs (1)
128httpContext.Request.PathBase = new PathString("");
CreatedOfTResultTests.cs (1)
179httpContext.Request.PathBase = new PathString("");
CreatedResultTests.cs (1)
116httpContext.Request.PathBase = new PathString("");
EmptyResultTests.cs (1)
40httpContext.Request.PathBase = new PathString("");
LocalRedirectResultTests.cs (1)
132httpContext.Request.PathBase = new PathString(appRoot);
NotFoundOfTResultTests.cs (1)
142httpContext.Request.PathBase = new PathString("");
NotFoundResultTests.cs (1)
91httpContext.Request.PathBase = new PathString("");
src\Shared\ResultsTests\RedirectResultTestBase.cs (1)
74httpContext.Request.PathBase = new PathString(appRoot);
Microsoft.AspNetCore.Http.Tests (3)
ApplicationBuilderTests.cs (1)
95httpContext.Request.PathBase = "/pathbase";
Internal\DefaultHttpRequestTests.cs (2)
306context.Request.PathBase = "/PathBase"; 334context.Request.PathBase = "/PathBase";
Microsoft.AspNetCore.HttpLogging.Tests (1)
HttpLoggingMiddlewareTests.cs (1)
1960httpContext.Request.PathBase = new PathString("/foo");
Microsoft.AspNetCore.HttpOverrides (1)
ForwardedHeadersMiddleware.cs (1)
383request.PathBase = PathString.FromUriComponent(currentValues.Prefix);
Microsoft.AspNetCore.HttpOverrides.Tests (1)
ForwardedHeadersMiddlewareTest.cs (1)
1199c.Request.PathBase = new PathString(pathBase);
Microsoft.AspNetCore.Mvc.Core.Test (15)
CreatedAtActionResultTests.cs (1)
78httpContext.Request.PathBase = new PathString("");
CreatedAtRouteResultTests.cs (1)
92httpContext.Request.PathBase = new PathString("");
CreatedResultTests.cs (1)
125httpContext.Request.PathBase = new PathString("");
HttpNotFoundObjectResultTest.cs (1)
58httpContext.Request.PathBase = new PathString("");
LocalRedirectResultTest.cs (1)
150httpContext.Request.PathBase = new PathString(appRoot);
RequireHttpsAttributeTests.cs (1)
77requestContext.Request.PathBase = new PathString(pathBase);
Routing\ControllerLinkGeneratorExtensionsTest.cs (3)
58httpContext.Request.PathBase = new PathString("/Foo/Bar?encodeme?"); 116httpContext.Request.PathBase = new PathString("/Foo/Bar?encodeme?"); 179httpContext.Request.PathBase = new PathString("/Foo/Bar?encodeme?");
Routing\PageLinkGeneratorExtensionsTest.cs (3)
30httpContext.Request.PathBase = new PathString("/Foo/Bar?encodeme?"); 87httpContext.Request.PathBase = new PathString("/Foo/Bar?encodeme?"); 149httpContext.Request.PathBase = new PathString("/Foo/Bar?encodeme?");
Routing\UrlHelperBaseTest.cs (1)
125context.Request.PathBase = new PathString(appRoot);
Routing\UrlHelperTestBase.cs (1)
1152context.Request.PathBase = new PathString(appRoot);
src\Shared\ResultsTests\RedirectResultTestBase.cs (1)
74httpContext.Request.PathBase = new PathString(appRoot);
Microsoft.AspNetCore.Mvc.TagHelpers.Test (7)
ImageTagHelperTest.cs (2)
200helper.ViewContext.HttpContext.Request.PathBase = new PathString(pathBase); 296actionContext.HttpContext.Request.PathBase = new Http.PathString(requestPathBase);
LinkTagHelperTest.cs (2)
792helper.ViewContext.HttpContext.Request.PathBase = "/approot"; 1127actionContext.HttpContext.Request.PathBase = new PathString(requestPathBase);
ScriptTagHelperTest.cs (3)
697helper.ViewContext.HttpContext.Request.PathBase = "/approot"; 1052helper.ViewContext.HttpContext.Request.PathBase = "/approot"; 1108actionContext.HttpContext.Request.PathBase = new PathString(requestPathBase);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (9)
CookieTempDataProviderTest.cs (7)
40httpContext.Request.PathBase = "/"; 126httpContext.Request.PathBase = "/"; 161httpContext.Request.PathBase = "/"; 197httpContext.Request.PathBase = pathBase; 246httpContext.Request.PathBase = requestPathBase; 276httpContext.Request.PathBase = "/"; 316context.Request.PathBase = "/";
Rendering\HtmlHelperFormTest.cs (2)
139request.PathBase = new PathString(pathBase); 189request.PathBase = new PathString(pathBase);
Microsoft.AspNetCore.OutputCaching.Tests (3)
OutputCacheKeyProviderTests.cs (3)
24context.HttpContext.Request.PathBase = "/pathBase"; 41context.HttpContext.Request.PathBase = "/pathBase"; 311context.HttpContext.Request.PathBase = "/pathBase" + KeyDelimiter;
Microsoft.AspNetCore.Owin.Tests (1)
OwinEnvironmentTests.cs (1)
27context.Request.PathBase = new PathString("/pathBase");
Microsoft.AspNetCore.Routing.Tests (12)
DefaultLinkGeneratorTest.cs (5)
367httpContext.Request.PathBase = new PathString("/Foo/Bar?encodeme?"); 416httpContext.Request.PathBase = new PathString("/Foo/Bar?encodeme?"); 487httpContext.Request.PathBase = "/Foo"; 512httpContext.Request.PathBase = "/Foo"; 538httpContext.Request.PathBase = "/Foo";
LinkGeneratorEndpointNameExtensionsTest.cs (3)
28httpContext.Request.PathBase = new PathString("/Foo/Bar?encodeme?"); 77httpContext.Request.PathBase = new PathString("/Foo/Bar?encodeme?"); 130httpContext.Request.PathBase = new PathString("/Foo/Bar?encodeme?");
LinkGeneratorRouteValuesAddressExtensionsTest.cs (4)
34httpContext.Request.PathBase = new PathString("/Foo/Bar?encodeme?"); 91httpContext.Request.PathBase = new PathString("/Foo/Bar?encodeme?"); 152httpContext.Request.PathBase = new PathString("/Foo/Bar?encodeme?"); 184httpContext.Request.PathBase = new PathString("/Foo/Bar?encodeme?");
Microsoft.AspNetCore.TestHost (5)
ClientHandler.cs (2)
181req.PathBase = PathString.Empty; 185req.PathBase = _pathBase;
TestServer.cs (1)
226request.PathBase = pathBase;
WebSocketClient.cs (2)
72request.PathBase = PathString.Empty; 76request.PathBase = _pathBase;
136 references to PathBase
AzureAppServicesHostingStartupSample (1)
Startup.cs (1)
23await context.Response.WriteAsync("PathBase: " + context.Request.PathBase.Value + Environment.NewLine);
AzureAppServicesSample (1)
Startup.cs (1)
34await context.Response.WriteAsync("PathBase: " + context.Request.PathBase.Value + Environment.NewLine);
blazor-devserver (1)
Server\Startup.cs (1)
93if (context.Request.PathBase == pathBase)
Certificate.Optional.Sample (1)
Startup.cs (1)
26request.PathBase, request.Path, request.QueryString);
CookiePolicySample (10)
Startup.cs (10)
19options.CheckConsentNeeded = context => context.Request.PathBase.Equals("/NeedsConsent"); 84await response.WriteAsync($"<a href=\"{context.Request.PathBase}/\">Home</a><br>\r\n"); 85await response.WriteAsync($"<a href=\"{context.Request.PathBase}/Login\">Login</a><br>\r\n"); 86await response.WriteAsync($"<a href=\"{context.Request.PathBase}/Logout\">Logout</a><br>\r\n"); 87await response.WriteAsync($"<a href=\"{context.Request.PathBase}/CreateTempCookie\">Create Temp Cookie</a><br>\r\n"); 88await response.WriteAsync($"<a href=\"{context.Request.PathBase}/RemoveTempCookie\">Remove Temp Cookie</a><br>\r\n"); 89await response.WriteAsync($"<a href=\"{context.Request.PathBase}/CreateEssentialCookie\">Create Essential Cookie</a><br>\r\n"); 90await response.WriteAsync($"<a href=\"{context.Request.PathBase}/RemoveEssentialCookie\">Remove Essential Cookie</a><br>\r\n"); 91await response.WriteAsync($"<a href=\"{context.Request.PathBase}/GrantConsent\">Grant Consent</a><br>\r\n"); 92await response.WriteAsync($"<a href=\"{context.Request.PathBase}/WithdrawConsent\">Withdraw Consent</a><br>\r\n");
CorsMiddlewareWebSite (1)
EchoMiddleware.cs (1)
28var path = context.Request.PathBase + context.Request.Path + context.Request.QueryString;
HeaderPropagationSample (1)
Startup.cs (1)
75var uri = UriHelper.BuildAbsolute(context.Request.Scheme, context.Request.Host, context.Request.PathBase, "/forwarded");
HotAddSample (3)
Startup.cs (3)
54await context.Response.WriteAsync("<br><a href=\"" + context.Request.PathBase.ToUriComponent() + "\">back</a>"); 78await context.Response.WriteAsync("<br><a href=\"" + context.Request.PathBase.ToUriComponent() + "\">back</a>"); 95await context.Response.WriteAsync("<form action=\"" + context.Request.PathBase.ToUriComponent() + "\" method=\"GET\">");
Identity.DefaultUI.WebSite (1)
Services\ContosoAuthenticationHandler.cs (1)
27var uri = $"{Request.Scheme}://{Request.Host}{Request.PathBase}{Options.RemoteLoginPath}";
IISSample (1)
Startup.cs (1)
48await context.Response.WriteAsync("PathBase: " + context.Request.PathBase.Value + Environment.NewLine);
InMemory.FunctionalTests (1)
RequestTargetProcessingTests.cs (1)
103Assert.Empty(context.Request.PathBase.Value);
InProcessWebSite (4)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (3)
269return ctx.Response.WriteAsync($"PathBase: {ctx.Request.PathBase.Value}; Path: {ctx.Request.Path.Value}"); 284Assert.Equal("/FeatureCollectionSetRequestFeatures", ctx.Request.PathBase); 286Assert.Equal("/base", ctx.Request.PathBase);
src\Servers\IIS\IIS\test\testassets\shared\WebSockets\TestStartup.cs (1)
54var pathBase = context.Request.PathBase;
Microsoft.AspNetCore.Antiforgery (1)
Internal\DefaultAntiforgeryTokenStore.cs (1)
92var pathBase = httpContext.Request.PathBase.ToString();
Microsoft.AspNetCore.Antiforgery.Test (4)
DefaultAntiforgeryTokenStoreTest.cs (4)
367.SetupGet(hc => hc.Request.PathBase) 409.SetupGet(hc => hc.Request.PathBase) 445.SetupGet(hc => hc.Request.PathBase) 484.SetupGet(hc => hc.Request.PathBase)
Microsoft.AspNetCore.Authentication (4)
AuthenticationHandler.cs (2)
59protected PathString OriginalPathBase => Context.Features.Get<IAuthenticationFeature>()?.OriginalPathBase ?? Request.PathBase; 106get => Request.Scheme + Uri.SchemeDelimiter + Request.Host + Request.PathBase + Request.Path + Request.QueryString;
AuthenticationMiddleware.cs (1)
45OriginalPathBase = context.Request.PathBase
RequestPathBaseCookieBuilder.cs (1)
28var originalPathBase = context.Features.Get<IAuthenticationFeature>()?.OriginalPathBase ?? context.Request.PathBase;
Microsoft.AspNetCore.Authentication.Test (1)
CookieTests.cs (1)
1158Assert.Equal(new PathString("/base"), context.Request.PathBase);
Microsoft.AspNetCore.Components.Endpoints (2)
Rendering\EndpointHtmlRenderer.cs (2)
208request.PathBase, 215var result = UriHelper.BuildAbsolute(request.Scheme, request.Host, request.PathBase);
Microsoft.AspNetCore.Diagnostics (2)
StatusCodePage\StatusCodePagesExtensions.cs (2)
102context.HttpContext.Response.Redirect(context.HttpContext.Request.PathBase + location); 183OriginalPathBase = context.HttpContext.Request.PathBase.Value!,
Microsoft.AspNetCore.Diagnostics.Abstractions (1)
IStatusCodeReExecuteFeature.cs (1)
17/// The <see cref="HttpRequest.PathBase"/> of the original request.
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (2)
DatabaseDeveloperPageExceptionFilter.cs (1)
81Model = new DatabaseErrorPageModel(dbException, contextDetails, _options, errorContext.HttpContext.Request.PathBase)
DatabaseErrorPageMiddleware.cs (1)
104Model = new DatabaseErrorPageModel(exception, new DatabaseContextDetails[] { details }, _options, httpContext.Request.PathBase)
Microsoft.AspNetCore.Hosting (12)
Internal\HostingApplicationDiagnostics.cs (3)
447[DynamicDependency(nameof(HttpRequest.PathBase), typeof(HttpRequest))] 519_path = (httpContext.Request.PathBase.HasValue 520? httpContext.Request.PathBase + httpContext.Request.Path
Internal\HostingRequestFinishedLog.cs (3)
438 => new KeyValuePair<string, object?>(nameof(request.PathBase), request.PathBase.Value), 66_cachedToString = $"Request finished {request.Protocol} {request.Method} {request.Scheme}://{request.Host.Value}{request.PathBase.Value}{request.Path.Value}{request.QueryString.Value} - {response.StatusCode.ToString(CultureInfo.InvariantCulture)} {ValueOrEmptyMarker(response.ContentLength)} {EscapedValueOrEmptyMarker(response.ContentType)} {Elapsed.TotalMilliseconds.ToString("0.0000", CultureInfo.InvariantCulture)}ms";
Internal\HostingRequestStartingLog.cs (3)
316 => new KeyValuePair<string, object?>(nameof(_request.PathBase), _request.PathBase.Value), 48_cachedToString = $"Request starting {request.Protocol} {request.Method} {request.Scheme}://{request.Host.Value}{request.PathBase.Value}{request.Path.Value}{request.QueryString.Value} - {EscapedValueOrEmptyMarker(request.ContentType)} {ValueOrEmptyMarker(request.ContentLength)}";
Internal\HostingRequestUnhandledLog.cs (3)
263 => new KeyValuePair<string, object?>(nameof(_httpContext.Request.PathBase), _httpContext.Request.PathBase), 44_cachedToString = $"Request reached the end of the middleware pipeline without being handled by application code. Request path: {request.Method} {request.Scheme}://{request.Host}{request.PathBase}{request.Path}, Response status code: {response.StatusCode}";
Microsoft.AspNetCore.Hosting.Tests (1)
Internal\HostingRequestStartLogTests.cs (1)
21mockRequest.Setup(request => request.PathBase).Returns(new PathString("/"));
Microsoft.AspNetCore.Http (2)
src\Shared\Debugger\HttpContextDebugFormatter.cs (2)
94!request.PathBase.HasValue && 114sb.Append(CultureInfo.InvariantCulture, $"{scheme}://{host}{request.PathBase.Value}{request.Path.Value}{(includeQueryString ? request.QueryString.Value : string.Empty)}");
Microsoft.AspNetCore.Http.Abstractions.Tests (10)
MapPathMiddlewareTests.cs (8)
15context.Items["test.PathBase"] = context.Request.PathBase.Value; 63Assert.Equal(basePath, context.Request.PathBase.Value); 152Assert.Equal(basePath, context.Request.PathBase.Value); 174Assert.Equal(basePath, context.Request.PathBase.Value); 196Assert.Equal(string.Empty, context.Request.PathBase.Value); 202Assert.Equal(string.Empty, context.Request.PathBase.Value); 208Assert.Equal(string.Empty, context.Request.PathBase.Value); 214Assert.Equal(string.Empty, context.Request.PathBase.Value);
UsePathBaseExtensionsTests.cs (2)
216context.Items["test.PathBase"] = context.Request.PathBase; 226Assert.Equal(pathBase, requestContext.Request.PathBase.Value);
Microsoft.AspNetCore.Http.Extensions (3)
UriHelper.cs (3)
186return BuildAbsolute(request.Scheme, request.Host, request.PathBase, request.Path, request.QueryString); 195return BuildRelative(request.PathBase, request.Path, request.QueryString); 209var pathBase = request.PathBase.Value ?? string.Empty;
Microsoft.AspNetCore.Http.Results (1)
src\Shared\ResultsHelpers\SharedUrlHelper.cs (1)
23var applicationPath = httpContext.Request.PathBase;
Microsoft.AspNetCore.HttpLogging (4)
HttpLoggingFields.cs (1)
23/// and <see cref="HttpRequest.PathBase"/>.
HttpLoggingMiddleware.cs (2)
129logContext.AddParameter(nameof(request.PathBase), request.PathBase);
W3CLoggingMiddleware.cs (1)
134shouldLog |= AddToList(elements, _uriStemIndex, (request.PathBase + request.Path).ToUriComponent());
Microsoft.AspNetCore.HttpOverrides (2)
ForwardedHeadersMiddleware.cs (2)
365if (request.PathBase.HasValue) 368requestHeaders[_options.OriginalPrefixHeaderName] = request.PathBase.ToString();
Microsoft.AspNetCore.HttpOverrides.Tests (6)
ForwardedHeadersMiddlewareTest.cs (6)
927Assert.Equal("/pathbase", context.Request.PathBase); 962Assert.Equal(PathString.Empty, context.Request.PathBase); 1160Assert.Equal(expectedUnescapedPathBase, context.Request.PathBase.Value); 1203Assert.Equal(expectedUnescapedPathBase, context.Request.PathBase.Value); 1238Assert.Equal(PathString.Empty, context.Request.PathBase); 1285Assert.Equal(PathString.Empty, context.Request.PathBase);
Microsoft.AspNetCore.HttpsPolicy (1)
HttpsRedirectionMiddleware.cs (1)
105request.PathBase,
Microsoft.AspNetCore.Mvc.Core (9)
RequireHttpsAttribute.cs (1)
93request.PathBase.ToUriComponent(),
Routing\ControllerLinkGeneratorExtensions.cs (2)
31/// An optional URI path base. Prepended to the path in the resulting URI. If not provided, the value of <see cref="HttpRequest.PathBase"/> will be used. 117/// An optional URI path base. Prepended to the path in the resulting URI. If not provided, the value of <see cref="HttpRequest.PathBase"/> will be used.
Routing\PageLinkGeneratorExtensions.cs (2)
30/// An optional URI path base. Prepended to the path in the resulting URI. If not provided, the value of <see cref="HttpRequest.PathBase"/> will be used. 118/// An optional URI path base. Prepended to the path in the resulting URI. If not provided, the value of <see cref="HttpRequest.PathBase"/> will be used.
Routing\UrlHelperBase.cs (3)
131var pathBase = ActionContext.HttpContext.Request.PathBase; 305var applicationPath = httpContext.Request.PathBase; 470var pathBase = ActionContext.HttpContext.Request.PathBase;
src\Shared\ResultsHelpers\SharedUrlHelper.cs (1)
23var applicationPath = httpContext.Request.PathBase;
Microsoft.AspNetCore.Mvc.Core.Test (2)
Routing\UrlHelperBaseTest.cs (2)
47UrlHelperBase.AppendPathAndFragment(builder, httpContext.Request.PathBase, virtualPath, string.Empty); 68UrlHelperBase.AppendPathAndFragment(builder, httpContext.Request.PathBase, virtualPath, fragmentValue);
Microsoft.AspNetCore.Mvc.TagHelpers (7)
GlobbingUrlBuilder.cs (1)
55/// The base path of the current request (i.e. <see cref="HttpRequest.PathBase"/>).
ImageTagHelper.cs (1)
144var pathBase = ViewContext.HttpContext.Request.PathBase;
LinkTagHelper.cs (2)
477ViewContext.HttpContext.Request.PathBase); 536var pathBase = ViewContext.HttpContext.Request.PathBase;
ResourceCollectionUtilities.cs (1)
14var pathBase = viewContext.HttpContext.Request.PathBase;
ScriptTagHelper.cs (2)
416var pathBase = ViewContext.HttpContext.Request.PathBase; 465ViewContext.HttpContext.Request.PathBase);
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
CookieTempDataProvider.cs (1)
131var pathBase = httpContext.Request.PathBase.ToString();
DefaultHtmlGenerator.cs (1)
282action = request.PathBase + request.Path + request.QueryString;
Microsoft.AspNetCore.Owin.Tests (1)
OwinEnvironmentTests.cs (1)
88Assert.Equal("/pathBase", context.Request.PathBase.Value);
Microsoft.AspNetCore.ResponseCaching (2)
ResponseCachingKeyProvider.cs (2)
56.Append(request.PathBase.Value) 62.AppendUpperInvariant(request.PathBase.Value)
Microsoft.AspNetCore.Rewrite (4)
RedirectRule.cs (1)
31var pathBase = request.PathBase;
RedirectToHttpsRule.cs (1)
33var newUrl = UriHelper.BuildAbsolute("https", host, req.PathBase, req.Path, req.QueryString, default);
RedirectToWwwHelper.cs (1)
50request.PathBase,
UrlActions\RedirectAction.cs (1)
33var pathBase = context.HttpContext.Request.PathBase;
Microsoft.AspNetCore.Routing (10)
DefaultLinkGenerator.cs (2)
91pathBase ?? httpContext.Request.PathBase, 144pathBase ?? httpContext.Request.PathBase,
LinkGeneratorEndpointNameAddressExtensions.cs (4)
23/// An optional URI path base. Prepended to the path in the resulting URI. If not provided, the value of <see cref="HttpRequest.PathBase"/> will be used. 63/// An optional URI path base. Prepended to the path in the resulting URI. If not provided, the value of <see cref="HttpRequest.PathBase"/> will be used. 166/// An optional URI path base. Prepended to the path in the resulting URI. If not provided, the value of <see cref="HttpRequest.PathBase"/> will be used. 225/// An optional URI path base. Prepended to the path in the resulting URI. If not provided, the value of <see cref="HttpRequest.PathBase"/> will be used.
LinkGeneratorRouteValuesAddressExtensions.cs (4)
23/// An optional URI path base. Prepended to the path in the resulting URI. If not provided, the value of <see cref="HttpRequest.PathBase"/> will be used. 63/// An optional URI path base. Prepended to the path in the resulting URI. If not provided, the value of <see cref="HttpRequest.PathBase"/> will be used. 166/// An optional URI path base. Prepended to the path in the resulting URI. If not provided, the value of <see cref="HttpRequest.PathBase"/> will be used. 225/// An optional URI path base. Prepended to the path in the resulting URI. If not provided, the value of <see cref="HttpRequest.PathBase"/> will be used.
Microsoft.AspNetCore.Routing.Abstractions (2)
LinkGenerator.cs (2)
37/// An optional URI path base. Prepended to the path in the resulting URI. If not provided, the value of <see cref="HttpRequest.PathBase"/> will be used. 92/// An optional URI path base. Prepended to the path in the resulting URI. If not provided, the value of <see cref="HttpRequest.PathBase"/> will be used.
Microsoft.AspNetCore.Server.IISIntegration.Tests (1)
IISMiddlewareTests.cs (1)
370requestPathBase = context.Request.PathBase.Value;
Microsoft.AspNetCore.StaticFiles (2)
Helpers.cs (1)
45var redirect = UriHelper.BuildAbsolute(request.Scheme, request.Host, request.PathBase, request.Path + "/", request.QueryString);
HtmlDirectoryFormatter.cs (1)
48PathString requestPath = context.Request.PathBase + context.Request.Path;
Microsoft.AspNetCore.TestHost.Tests (6)
ClientHandlerTests.cs (2)
53Assert.Equal("/A/Path", context.Request.PathBase.Value); 100Assert.Equal("", context.Request.PathBase.Value);
HttpContextBuilderTests.cs (2)
35Assert.Equal("/A/Path", context.Request.PathBase.Value); 73Assert.Equal("", context.Request.PathBase.Value);
TestClientTests.cs (2)
47Assert.Equal("", ctx.Request.PathBase.Value); 69Assert.Equal("", ctx.Request.PathBase.Value);
NativeIISSample (1)
Startup.cs (1)
42await context.Response.WriteAsync("PathBase: " + context.Request.PathBase.Value + Environment.NewLine);
StatusCodePagesSample (2)
Startup.cs (2)
85HtmlEncoder.Default.Encode(context.Request.PathBase.ToString()) + "/missingpage/\">" + 86HtmlEncoder.Default.Encode(context.Request.PathBase.ToString()) + "/missingpage/</a><br>");