mirror of
https://github.com/grocy/grocy.git
synced 2026-04-03 11:26:16 +02:00
Fix base path computation when running in subdirectory (#945)
This commit is contained in:
parent
b6b6f903ab
commit
6cd874f3ba
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user