Url.clearQuery
clearQuery() -> self
Description
Remove all fields from the query.
$url = url'/page'.setQuery({ a: 11, b: 22 }) $url.renderString() //= '/page?a=11&b=22' $url.clearQuery() $url.renderString() //= '/page'
Remove all fields from the query.
$url = url'/page'.setQuery({ a: 11, b: 22 }) $url.renderString() //= '/page?a=11&b=22' $url.clearQuery() $url.renderString() //= '/page'