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 9c8e396c9a
commit 6d1df75889
1 changed files with 1 additions and 1 deletions

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}";
}