I'm going off this: How do I get the referrer URL in an ASP.NET MVC action?
It works. I am recieving a URL when my form is submitted, but it's the same URL the contact form is on. I'm guessing when I hit submit, it thinks the previous page is the contact page. I'd like to find out the page the user was on BEFORE the contact form page.
This is what I have:
sb.Append("<p>Referrer URL: " + Request.ServerVariables["HTTP_REFERER"] + "</p>");
Referrer URL: " + Request["referer"] + "
"); and this in the .cshtml file: – Christopher Northcutt Apr 13 '16 at 20:14