Always set the url protocol for the url generator

This commit is contained in:
Timothy Warren 2018-10-10 14:21:46 -04:00
parent aaafebec99
commit 54b4e11335

View File

@ -88,7 +88,7 @@ class UrlGenerator extends RoutingBase {
}
$path = implode('/', $path_segments);
$scheme = (isset($_SERVER['HTTPS'])) ? 'https:' : '';
$scheme = (isset($_SERVER['HTTPS'])) ? 'https:' : 'http';
return "{$scheme}//{$this->host}/{$path}";
}