From 0993f3e6ef085464e1d2602db3b075fb743c53cf Mon Sep 17 00:00:00 2001 From: rabuzarus Date: Wed, 30 Jan 2019 01:00:40 +0100 Subject: [PATCH] fix isssue if friendica is installed into a subdirectory --- src/App.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() : '' ); } /** -- 2.39.5