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 Request.UrlReferrer to get the referring URL as well if you don't like accessing the Request.ServerVariables dictionary directly.
Request.UrlReferrer
Request.ServerVariables
1.4m articles
1.4m replys
5 comments
57.0k users