From 6cd874f3ba29bbe22d14787ae909c34c9d6efdfd Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Tue, 18 Aug 2020 17:57:35 +0200 Subject: [PATCH] Fix base path computation when running in subdirectory (#945) --- helpers/UrlManager.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/helpers/UrlManager.php b/helpers/UrlManager.php index f3ef6d88..d6301ac8 100644 --- a/helpers/UrlManager.php +++ b/helpers/UrlManager.php @@ -6,14 +6,7 @@ class UrlManager { public function __construct(string $basePath) { - if ($basePath === '/') - { - $this->BasePath = $this->GetBaseUrl(); - } - else - { - $this->BasePath = $basePath; - } + $this->BasePath = $this->GetBaseUrl() . $basePath; } protected $BasePath;