mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 13:54:26 +02:00
Url: Remove redundant slash on urls without path
This commit is contained in:
parent
776d06d6ca
commit
7e460e7c03
@ -316,7 +316,7 @@ class Url
|
||||
return $relativeUrl;
|
||||
}
|
||||
|
||||
return $this->baseUrl . ($this->baseUrl !== '/' ? '/' : '') . $relativeUrl;
|
||||
return $this->baseUrl . ($this->baseUrl !== '/' && $relativeUrl ? '/' : '') . $relativeUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user