Url.getPathParts
getPathParts() -> list
Description
Get a List of locations in the path, split by /
.
$siteUrl = url'http://mysite.com/forum/thread/i-found-a-bug' $siteUrl.pathParts() //= ['forum', 'thread', 'i-found-a-bug']
Get a List of locations in the path, split by /
.
$siteUrl = url'http://mysite.com/forum/thread/i-found-a-bug' $siteUrl.pathParts() //= ['forum', 'thread', 'i-found-a-bug']