Url: Return basePath in method getBaseUrl if url is internal

refs #12133
This commit is contained in:
Noah Hilverling 2016-10-18 12:26:59 +02:00
parent f6f90822d6
commit 4dd9c05882
1 changed files with 1 additions and 1 deletions

View File

@ -412,7 +412,7 @@ class Url
public function getBaseUrl()
{
if (!$this->isExternal()) {
return '';
return $this->getBasePath();
}
return $this->getScheme() . '://' . $this->getHost() . ($this->getPort() ? (':' . $this->getPort()) : '');