title: Next referral on the front page not working
body: <p>I have login link, with a next parameter, so the user is redirected back to the page he came from.</p>
  <p>Like this</p>
  <pre><code>&lt;a href=&quot;{% url 'account_login' %}?next={{ request.path }}&quot;&gt;
  </code></pre>
  <p>This works fine everywhere except on the front page.</p>
  <p>Then I get this error:</p>
  <pre><code>NoReverseMatch: Reverse for 'request.path' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []
  
  'HTTP_REFERER': 'http://www.example.com/account/login/?next=/',
  </code></pre>
  <p>Anyone know what I'm doing wrong?</p>
  <h1>Edit:</h1>
  <p>Updated question with the <code>a</code> element.</p>