mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 17:45:39 +00:00
This reverts commit 6cd874f3ba29bbe22d14787ae909c34c9d6efdfd.
This commit is contained in:
parent
6cd874f3ba
commit
68dcd02d00
@ -6,7 +6,14 @@ class UrlManager
|
|||||||
{
|
{
|
||||||
public function __construct(string $basePath)
|
public function __construct(string $basePath)
|
||||||
{
|
{
|
||||||
$this->BasePath = $this->GetBaseUrl() . $basePath;
|
if ($basePath === '/')
|
||||||
|
{
|
||||||
|
$this->BasePath = $this->GetBaseUrl();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$this->BasePath = $basePath;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected $BasePath;
|
protected $BasePath;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user