Skip to content

Commit 494c400

Browse files
author
andela-kerinoso
committed
Fix Mixed-content error of loading http over https scheme after diconnect of social account
1 parent 848e1ff commit 494c400

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

social/actions.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,10 @@ def do_disconnect(backend, user, association_id=None, redirect_name='next',
110110

111111
if isinstance(response, dict):
112112
response = backend.strategy.redirect(
113-
backend.strategy.request_data().get(redirect_name, '') or
114-
backend.setting('DISCONNECT_REDIRECT_URL') or
115-
backend.setting('LOGIN_REDIRECT_URL')
113+
backend.strategy.absolute_uri(
114+
backend.strategy.request_data().get(redirect_name, '') or
115+
backend.setting('DISCONNECT_REDIRECT_URL') or
116+
backend.setting('LOGIN_REDIRECT_URL')
117+
)
116118
)
117119
return response

0 commit comments

Comments
 (0)