Parses the given URL into components such as hostname and path.
If the given URL is not fully qualified, it is assumed to be relative to the current page.
let parsed = up.util.parseURL('/path?foo=value')
parsed.pathname // => '/path'
parsed.search // => '/?foo=value'
parsed.hash // => ''
The parsed URL as an object with
protocol
, hostname
, port
, pathname
, search
and hash
properties.