Url.setPath
setPath($newPath) -> self
Description
Set the path
part of the Url.
$siteUrl = url'http://mysite.com/home' $siteUrl.setPath('/user/123') $siteUrl.renderString() //= 'http://mysite.com/user/123'
Set the path
part of the Url.
$siteUrl = url'http://mysite.com/home' $siteUrl.setPath('/user/123') $siteUrl.renderString() //= 'http://mysite.com/user/123'