py3: adapt urlunsplit call

This commit is contained in:
Frédéric Péters 2020-07-28 13:57:51 +02:00
parent 840b1c4f8e
commit d498cae647
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ def post_login_do(request, *args, **kwargs):
url = resolve_url('associate')
elif result.get('result') == 'redirect':
url = urlparse.urlsplit(result.get('url', '/'))
url = urlparse.urlunsplit((None, None, url.path, url.query, url.fragment))
url = urlparse.urlunsplit(('', '', url.path, url.query, url.fragment))
else:
credentials.linked = True
credentials.save()