title: Passing Previous / Calling / Referrer URL from view to controller
body: <p>I have course and pages controllers and views. Each of them have edit / details actions. The list of pages is displayed on the course view in both Edit and details mode. There's a "Back" button on page view that must take the user to the calling page. Below are the two sample urls, both of which will list pages with edit / details buttons :</p>
  
  <ul>
  <li>root/edit/courses/course-url  </li>
  <li>root/details/courses/course-url</li>
  </ul>
  
  <p>I way i found to work with this is using "Referer" header Request.UrlReferrer.ToString(). But i also read that the browser can block sending this header and also it can be easily tampered. Please suggest a way to send the referer Url from the view.</p>
  
  <pre><code>&lt;a href="/Topics/@CourseModel.Url/@PageModel.Url"&gt;Details&lt;/a&gt;
  </code></pre>