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.
Thanks, though you're missing an 's' on ServerVariables :)
Nat Ryall
2009-09-24 11:59:05
Edited, cheers!
Daniel Elliott
2009-09-24 11:59:41
+3
A:
You can use Request.UrlReferrer
to get the referring URL as well if you don't like accessing the Request.ServerVariables
dictionary directly.
Derek Lawless
2009-09-24 16:29:08