Fix issue with the HTTPS redirect

This commit is contained in:
Belle Aerni 2023-06-21 15:07:51 -07:00
parent c613271c48
commit 57bb266635
1 changed files with 1 additions and 1 deletions

View File

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