summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2018-03-22 17:26:47 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2019-03-19 22:43:37 (GMT)
commitd0e6f46f9bcb25df68a99d8ed375f9454a9ffb73 (patch)
treefcc7d23429636d3a4cfb0c1ac2d01c6ae74c9588
parentb3e1b9c5331c15955f6c24eeed8b7013fe1b357a (diff)
downloaddjango-mellon-d0e6f46f9bcb25df68a99d8ed375f9454a9ffb73.zip
django-mellon-d0e6f46f9bcb25df68a99d8ed375f9454a9ffb73.tar.gz
django-mellon-d0e6f46f9bcb25df68a99d8ed375f9454a9ffb73.tar.bz2
views: keep next URL on disco requests (fixes #31043)
-rw-r--r--mellon/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mellon/views.py b/mellon/views.py
index 54040ef..babf813 100644
--- a/mellon/views.py
+++ b/mellon/views.py
@@ -348,12 +348,12 @@ class LoginView(ProfileMixin, LogMixin, View):
return self.sso_failure(request, login, reason=idp_message, status_codes=status_codes)
def request_discovery_service(self, request, is_passive=False):
- self_url = request.build_absolute_uri(request.path)
+ self_url = request.build_absolute_uri() + '&nodisco=1'
url = app_settings.DISCOVERY_SERVICE_URL
params = {
# prevent redirect loops with the discovery service
'entityID': request.build_absolute_uri(reverse('mellon_metadata')),
- 'return': self_url + '?nodisco=1',
+ 'return': self_url,
}
if is_passive:
params['isPassive'] = 'true'