Url: Remove redundant slash on urls without path

This commit is contained in:
Johannes Meyer 2015-09-21 14:04:36 +02:00
parent 776d06d6ca
commit 7e460e7c03
1 changed files with 1 additions and 1 deletions

View File

@ -316,7 +316,7 @@ class Url
return $relativeUrl;
}
return $this->baseUrl . ($this->baseUrl !== '/' ? '/' : '') . $relativeUrl;
return $this->baseUrl . ($this->baseUrl !== '/' && $relativeUrl ? '/' : '') . $relativeUrl;
}
/**