Url: Remove redundant slash on urls without path
This commit is contained in:
parent
776d06d6ca
commit
7e460e7c03
|
@ -316,7 +316,7 @@ class Url
|
|||
return $relativeUrl;
|
||||
}
|
||||
|
||||
return $this->baseUrl . ($this->baseUrl !== '/' ? '/' : '') . $relativeUrl;
|
||||
return $this->baseUrl . ($this->baseUrl !== '/' && $relativeUrl ? '/' : '') . $relativeUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue