Skip to content

Commit d0f32ad

Browse files
committed
Changed so that SSO login is also redirected to the next URL
1 parent 0bc6682 commit d0f32ad

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

templates/registration/login.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<h2>Login</h2>
1111
{% if idp %}
1212
<br>
13-
<a class="button" href="{% url 'social:begin' 'saml' %}?idp={{ idp }}">{{ sso_desc }}</a>
13+
<a class="button" href="{% url 'social:begin' 'saml' %}?idp={{ idp }}&next={{ next }}">{{ sso_desc }}</a>
1414
<hr width="500" align="left">
1515
<br>
1616
{% endif %}
@@ -45,7 +45,8 @@ <h2>Login</h2>
4545
note_desc: "{{note_desc}}",
4646
note_link: "{{note_link}}",
4747
{% if idp %}
48-
singleSignOnLoginUrl: "{% url 'social:begin' 'saml' %}?idp={{ idp }}",
48+
singleSignOnLoginUrl: "{% url 'social:begin' 'saml' %}?idp={{ idp }}&next={{ next }}",
49+
{% else %}
4950
{% endif %}
5051
};
5152
</script>

0 commit comments

Comments
 (0)