mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
Url: Return basePath in method getBaseUrl if url is internal
refs #12133
This commit is contained in:
parent
f6f90822d6
commit
4dd9c05882
@ -412,7 +412,7 @@ class Url
|
|||||||
public function getBaseUrl()
|
public function getBaseUrl()
|
||||||
{
|
{
|
||||||
if (!$this->isExternal()) {
|
if (!$this->isExternal()) {
|
||||||
return '';
|
return $this->getBasePath();
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->getScheme() . '://' . $this->getHost() . ($this->getPort() ? (':' . $this->getPort()) : '');
|
return $this->getScheme() . '://' . $this->getHost() . ($this->getPort() ? (':' . $this->getPort()) : '');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user