views: add nodisco=1 to discovery service return url (fixes #19018)

This commit is contained in:
Benjamin Dauvergne 2017-09-27 14:23:37 +02:00
parent 850a192bcb
commit afe3d4a83f
1 changed files with 1 additions and 2 deletions

View File

@ -317,8 +317,7 @@ class LoginView(ProfileMixin, LogMixin, View):
url = app_settings.DISCOVERY_SERVICE_URL
params = {
# prevent redirect loops with the discovery service
'nodisco': '1',
'return': self_url
'return': self_url + '?nodisco=1',
}
if is_passive:
params['isPassive'] = 'true'