Fix base path computation when running in subdirectory

This commit is contained in:
Stefan Haller 2020-08-01 18:53:54 +02:00
parent f6852e82b2
commit 3b01ab07b3

View File

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