Commit ee225beb authored by Vladimir Mencl's avatar Vladimir Mencl Committed by Zenon Mousmoulas
Browse files

Allow AltLogin to redirect to target URLs

When a "next" parameter exists in the context, reuse it for the redirect
(instead of forcing redirect to /overview)
parent c7a225e2
......@@ -37,7 +37,11 @@
<div class="form-group">
<div class="controls">
<button type="submit" class="btn">Sign in</button>
{% if next %}
<input type="hidden" name="next" value="{{ next }}" />
{% else %}
<input type="hidden" name="next" value="{% url overview %}" />
{% endif %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment