Revert "Fix base path computation when running in subdirectory (#945)" (#954)

This reverts commit 6cd874f3ba29bbe22d14787ae909c34c9d6efdfd.
This commit is contained in:
Bernd Bestel 2020-08-18 18:01:50 +02:00 committed by GitHub
parent 6cd874f3ba
commit 68dcd02d00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;