From 57bb266635c3143575322398097bc9082e575d82 Mon Sep 17 00:00:00 2001 From: Belle Aerni Date: Wed, 21 Jun 2023 15:07:51 -0700 Subject: [PATCH] Fix issue with the HTTPS redirect --- src/AntCMS/AntRouting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AntCMS/AntRouting.php b/src/AntCMS/AntRouting.php index 0b0a21f..2d83f74 100644 --- a/src/AntCMS/AntRouting.php +++ b/src/AntCMS/AntRouting.php @@ -51,7 +51,7 @@ class AntRouting $isHttps = !empty($scheme) && (strcasecmp('on', $scheme) == 0 || strcasecmp('https', $scheme) == 0); if (!$isHttps) { - $url = 'https://' . AntTools::repairURL($this->baseUrl . '/' . $this->requestUri); + $url = 'https://' . AntTools::repairURL($this->baseUrl . $this->requestUri); header('Location: ' . $url); exit; }