Version: v0.8.1 - Beta.  We welcome contributors & feedback.

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'

See Also