Skip to content

Commit 4facb1d

Browse files
committed
Merge pull request #1 from andela-kerinoso/social-account-disconnect/redirect-uri
[#118695049] Fix mixed-content error of loading http over https scheme after disconnection from social account
2 parents 848e1ff + 494c400 commit 4facb1d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

social/actions.py

+5-3
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)