mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
This reverts commit 6cd874f3ba
.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user