Url: Remove "/" in front of path if the url has a user parameter

refs #12133
This commit is contained in:
Noah Hilverling 2016-10-18 16:07:13 +02:00
parent dda7311226
commit 1c55351460
1 changed files with 3 additions and 3 deletions

View File

@ -189,7 +189,7 @@ class Url
if (isset($urlParts['path'])) {
$urlPath = $urlParts['path'];
if ($urlPath && $urlPath[0] === '/') {
if ($urlObject->isExternal()) {
if ($urlObject->isExternal() || isset($urlParts['user'])) {
$urlPath = substr($urlPath, 1);
} else {
$requestBaseUrl = $request->getBaseUrl();