From 68dcd02d00c406e8597910ba00a988b45c8182dd Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Tue, 18 Aug 2020 18:01:50 +0200 Subject: [PATCH] Revert "Fix base path computation when running in subdirectory (#945)" (#954) This reverts commit 6cd874f3ba29bbe22d14787ae909c34c9d6efdfd. --- helpers/UrlManager.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/helpers/UrlManager.php b/helpers/UrlManager.php index d6301ac8..f3ef6d88 100644 --- a/helpers/UrlManager.php +++ b/helpers/UrlManager.php @@ -6,7 +6,14 @@ class UrlManager { public function __construct(string $basePath) { - $this->BasePath = $this->GetBaseUrl() . $basePath; + if ($basePath === '/') + { + $this->BasePath = $this->GetBaseUrl(); + } + else + { + $this->BasePath = $basePath; + } } protected $BasePath;