mirror of
https://github.com/grocy/grocy.git
synced 2026-04-07 05:16:15 +02:00
Fix base path computation when running in subdirectory
This commit is contained in:
parent
f6852e82b2
commit
3b01ab07b3
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user