title: Can't redirect to original page after successful login
body: <p>I've changed the web.config file adding the following lines.</p>
  
  <pre><code>&lt;system.web&gt;
    &lt;authorization&gt;
      &lt;deny users="?"/&gt;
    &lt;/authorization&gt;
    &lt;authentication mode="Forms"&gt;
      &lt;forms loginUrl="~/Account/LogIn"&gt;&lt;/forms&gt;
    &lt;/authentication&gt;
  &lt;/system.web&gt;
  </code></pre>
  
  <p>Now, whatever page's accessed, I'm being redirected to the login page. That's great and as I enter the credentials, I'd like the user to be directed back to where they started.</p>
  
  <pre><code>public ActionResult LogIn(string token)
  {
    using (Model model = new Model())
      if (model.Users.Any(_ =&gt; _.Token == token))
        return Redirect(Request.UrlReferrer.ToString());
    return View();
  }
  </code></pre>
  
  <p>The problem I discover is that the <em>UrlReferrer</em> is the login page itself so I'm only redirecting to where I'm already at on the log in page, instead of where I originally started...</p>
  
  <p>What am I doing wrong?</p>