Browse Source

Fix issue with the HTTPS redirect

Belle Aerni 2 years ago
parent
commit
57bb266635
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/AntCMS/AntRouting.php

+ 1 - 1
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;
         }