If nothing helps, Javascript to the rescue

This commit is contained in:
Oliver Falk
2018-11-06 16:28:13 +01:00
parent 936065d14e
commit e6d6563712

View File

@@ -28,7 +28,10 @@
<input class="required openid" id="id_openid_identifier" size="70" maxlength="255" name="openid_identifier" value="{{ openid_identifier }}" type="text"></p>
<p><input type="submit" value="{% trans 'Login' %}" />
<input type="hidden" name="next" value="{{ request.build_absolute_uri }}" />
<input type="hidden" name="next" id="next"/>
<script>
document.getElementById("next").value = window.location.protocol + '//' + window.location.hostname + "{% url 'profile' %}";
</script>
&nbsp;<a href="{% url 'home' %}">{% trans 'Cancel' %}</a></p>
</form>