I have seen the following code:
protected override void Initialize(RequestContext requestContext)
{
base.Initialize(requestContext);
var filePath = requestContext.HttpContext.Request.FilePath;
}
However is there an easier way to do this from inside of an action method in ASP MVC?
For example for http://www.test.com/abc I would like to get “/abc”
Its pretty straight forward.