mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-26 07:22:34 +00:00
Redirect using "next" parameter when using shibboleth button
This commit is contained in:
@@ -133,7 +133,7 @@ $(function() {
|
|||||||
{% if enable_shib_login %}
|
{% if enable_shib_login %}
|
||||||
$(function() {
|
$(function() {
|
||||||
$('#shib-login').click(function() {
|
$('#shib-login').click(function() {
|
||||||
window.location = "{% url 'shib_login' %}";
|
window.location = "{% url 'shib_login' %}{% if next %}?next={{ next|escape }}{% endif %}";
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@@ -2004,4 +2004,4 @@ def image_view(request, filename):
|
|||||||
return response
|
return response
|
||||||
|
|
||||||
def shib_login(request):
|
def shib_login(request):
|
||||||
return HttpResponseRedirect(reverse('myhome'))
|
return HttpResponseRedirect(request.GET.get("next",reverse('myhome')))
|
||||||
|
Reference in New Issue
Block a user