Url.getQuery
getQuery() -> UrlQuery
Description
Get a UrlQuery object that contains the query params of the URL.
$postsUrl = url'/posts/all?sortBy=date&order=desc' $query = $postsUrl.getQuery() $query.get('sortBy') //= 'date' $query.get('order') //= 'desc'