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:
@@ -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;
|
||||
});
|
||||
});
|
||||
|
@@ -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')))
|
||||
|
Reference in New Issue
Block a user