Url: Add basePath to urlString if url is external or has a username

refs #12133
This commit is contained in:
Noah Hilverling 2016-10-19 09:41:03 +02:00
parent 2fd1a957a8
commit 1ff3149636
1 changed files with 1 additions and 1 deletions

View File

@ -609,7 +609,7 @@ class Url
$urlString .= ':' . $this->getPort();
}
return $urlString . '/' . $path;
return $urlString . $basePath . ($basePath !== '/' && $path ? '/' : '') . $path;
} else {
return $basePath . ($basePath !== '/' && $path ? '/' : '') . $path;
}