diff --git a/src/App.php b/src/App.php index 0015405c46..b910765e12 100644 --- a/src/App.php +++ b/src/App.php @@ -703,7 +703,7 @@ class App $this->hostname = Core\Config::get('config', 'hostname'); } - return $scheme . '://' . $this->hostname . !empty($this->getURLPath() ? '/' . $this->getURLPath() : '' ); + return $scheme . '://' . $this->hostname . (!empty($this->getURLPath()) ? '/' . $this->getURLPath() : '' ); } /**