From 6d1df758896b9ab9bcfa805453c0363da9c949e2 Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Wed, 10 Oct 2018 14:21:46 -0400 Subject: [PATCH] Always set the url protocol for the url generator --- src/UrlGenerator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}"; }