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;