Upon checking social media codes, I found out:
social_login.module: $request_port = ((!empty($_SERVER['SERVER_PORT']) AND $_SERVER['SERVER_PORT'] <> '80') ? (":" . $_SERVER['SERVER_PORT']) : '');
social_login.module: $redirect_to = $request_protocol . $_SERVER['SERVER_NAME'] . $request_port . $request_uri;
Pantheon has a server/infrastructure value for $_SERVER["SERVER_NAME"] and $_SERVER['SERVER_PORT'] . Since the redirect is going elsewhere. So you need to put this code at the bottom of your settings.php
$_SERVER['SERVER_NAME'] = $_SERVER['HTTP_HOST'];
if (isset($_SERVER['PANTHEON_ENVIRONMENT'])) {
if (isset($_SERVER['HTTP_X_SSL']) && $_SERVER['HTTP_X_SSL'] != 'ON') {
$_SERVER['SERVER_PORT'] = 443;
}
else {
$_SERVER['SERVER_PORT'] = 80;
}
}
Please sign in to your OneAll account to ask a new question or to contribute to the discussions.
Please click on the link below to connect to the forum with your OneAll account.
Answers
could you please post a link to your website so that I can reproduce and test the error?
Regards,