diff --git a/src/UrlGenerator.php b/src/UrlGenerator.php index 5dcf59f1..c4114ba8 100644 --- a/src/UrlGenerator.php +++ b/src/UrlGenerator.php @@ -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}"; }