Skip to content

Commit fd76a97

Browse files
committed
Correctly redirect after login_required
1 parent 34c0de8 commit fd76a97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/templates/registration/login.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727
</div>
2828
<div class="form-group">
2929
<a class="btn btn-default" style="font-size: 0.8em" role="button"
30-
href="{% url 'social:begin' 'facebook' %}?next={{ request.path }}">
30+
href="{% url 'social:begin' 'facebook' %}?next={{ next }}">
3131
<i class="fa fa-facebook fa-lg"></i> {% trans 'Facebook' %}
3232
</a>
3333
<a class="btn btn-default" style="font-size: 0.8em" role="button"
34-
href="{% url 'social:begin' 'google-oauth2' %}?next={{ request.path }}">
34+
href="{% url 'social:begin' 'google-oauth2' %}?next={{ next }}">
3535
<i class="fa fa-google fa-lg"></i> {% trans 'Google' %}
3636
</a>
3737
</div>

0 commit comments

Comments
 (0)