Url.getPath
getPath() -> string
Description
Get the path
part of the Url.
$siteUrl = url'http://mysite.com/home' $siteUrl.getPath() //= '/home'
Get the path
part of the Url.
$siteUrl = url'http://mysite.com/home' $siteUrl.getPath() //= '/home'