diff --git a/helpers/url.php b/helpers/url.php index 2bd3aa5..78b8748 100644 --- a/helpers/url.php +++ b/helpers/url.php @@ -6,7 +6,7 @@ function h_url_load_config() { $cnf = new ConfigLoader(); $url = $cnf->load('url'); if($url['base'] === null) { - $url['base'] = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; + $url['base'] = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]"; } }