summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/Jasny/Controller.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Jasny/Controller.php b/src/Jasny/Controller.php
index 9cb89d4..f9dd0eb 100644
--- a/src/Jasny/Controller.php
+++ b/src/Jasny/Controller.php
@@ -50,7 +50,7 @@ abstract class Controller
// Turn relative URL into absolute URL
if (strpos($url, '://') === false) {
if ($url == '' || $url[0] != '/') $url = dirname($_SERVER['REQUEST_URI']) . '/' . $url;
- $url = (empty($_SERVER['HTTPS']) ? 'http://' : 'https://') . $_SERVER['HTTP_HOST'] . $this->rebase($url);
+ $url = (empty($_SERVER['HTTPS']) ? 'http://' : 'https://') . $_SERVER['HTTP_HOST'] . $url;
}
header("Location: $url", true, $http_code);