1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-25 06:33:48 +00:00

Redirect using "next" parameter when using shibboleth button

This commit is contained in:
David Kreitschmann
2015-03-25 23:59:36 +01:00
parent d35991c5ed
commit c3f3e90af1
2 changed files with 2 additions and 2 deletions

View File

@@ -133,7 +133,7 @@ $(function() {
{% if enable_shib_login %}
$(function() {
$('#shib-login').click(function() {
window.location = "{% url 'shib_login' %}";
window.location = "{% url 'shib_login' %}{% if next %}?next={{ next|escape }}{% endif %}";
return false;
});
});

View File

@@ -2004,4 +2004,4 @@ def image_view(request, filename):
return response
def shib_login(request):
return HttpResponseRedirect(reverse('myhome'))
return HttpResponseRedirect(request.GET.get("next",reverse('myhome')))