Url
metro.url
Returns a new Url, built out of the options passed. Valid options are any property of the default Url class.
/Note/: this allows much more precise parameter changes than the default Url constructor. You can for example explicitly change the port number of an existing Url, but keep everything else:
You can set both the search and searchParams option using either a string (e.g.; ‘?foo=bar’) or by passing an object.
If you set searchParams, your parameters will be appended to existing parameters.
If you set search, existing parameters will be dropped.