protected static function _checkForFullLink($type, &$fullLink, &$fullLinkPrefix) { $type = parent::_checkForFullLink($type, $fullLink, $fullLinkPrefix); if (!empty($fullLinkPrefix)) { // fix issue with HTTPS requests $paths = XenForo_Application::get('requestPaths'); if ($paths['protocol'] === 'https' and parse_url($fullLinkPrefix, PHP_URL_SCHEME) === 'http') { $fullLinkPrefix = str_replace('http://', 'https://', $fullLinkPrefix); } } return $type; }