Alex Rivera | Logout

How do I get the referrer URL in an ASP.NET MVC action?

Asked 2009-09-24T11:49:52.227
94

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.

Edit
Report

1 Answer

9

You can use this

filterContext.RequestContext.HttpContext.Request.UrlReferrer.AbsolutePath
answered 2011-04-08T17:07:51.867

Your Answer