We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c67227 commit aa7792aCopy full SHA for aa7792a
djangoproject/templates/registration/login.html
@@ -15,7 +15,9 @@ <h1>{% translate "Log in" %}</h1>
15
16
<form method="post" action="" class="form-input">
17
{% csrf_token %}
18
- <input type="hidden" name="next" value="{{ next|default:"/" }}">
+ {% if next %}
19
+ <input type="hidden" name="next" value="{{ next }}">
20
+ {% endif %}
21
22
<div>
23
<label for="id_username">{% translate "Username:" %}</label>
0 commit comments