Understanding PathBase in ASP.NET Core

added by DotNetKicks
5/31/2022 10:33:53 AM

232 Views

In this post I'll describe a lesser-known property on HttpRequest called PathBase. I describe what it does, when it's useful, and how to use it. PathBase is a property on the HttpRequest object in ASP.NET Core, and is similar to Path. PathBase contains part of the original HTTP request's path, while Path contains the remainder.


0 comments