Commit a1b72ec0 authored by Michal Čihař's avatar Michal Čihař

Fix redirect after social auth login (fixes #457)

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 37c9cf62
......@@ -47,7 +47,7 @@
<h2>{% trans "Third party login" %}</h2>
{% for name in login_backends %}
<a class="button" href="{% url 'social:begin' name %}?next={% url 'profile' %}">{{ name }}</a>
<a class="button" href="{% url 'social:begin' name %}?next={{ next }}">{{ name }}</a>
{% endfor %}
{% endif %}
......
......@@ -41,7 +41,7 @@
<h2>{% trans "Third party registration" %}</h2>
{% for name in registration_backends %}
<a class="button" href="{% url 'social:begin' name %}?next={% url 'profile' %}">{{ name }}</a>
<a class="button" href="{% url 'social:begin' name %}">{{ name }}</a>
{% endfor %}
{% 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