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

This commit is contained in:
Stefan Haller 2020-08-18 17:57:35 +02:00 committed by GitHub
parent b6b6f903ab
commit 6cd874f3ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,14 +6,7 @@ class UrlManager
{ {
public function __construct(string $basePath) public function __construct(string $basePath)
{ {
if ($basePath === '/') $this->BasePath = $this->GetBaseUrl() . $basePath;
{
$this->BasePath = $this->GetBaseUrl();
}
else
{
$this->BasePath = $basePath;
}
} }
protected $BasePath; protected $BasePath;