How do I get the referrer URL in an ASP.NET MVC action? I am trying to redirect back to the page before you called an action.
You can use this
filterContext.RequestContext.HttpContext.Request.UrlReferrer.AbsolutePath