vue-router / _parseURL
_parseURL()
ts
function _parseURL(
parseQuery,
location,
currentLocation?
): LocationNormalized;Internal
Transforms a URI into a normalized history location.
Only handles paths: a protocol and host (https://a.com/x) are not parsed and end up in path. path is not decoded, hash is decoded. fullPath is the resolved path plus the raw query and hash, so it does not keep a relative input (../a gives /a).
no semver guarantee
Parameters
parseQuery
(search) => LocationQuery
receives the search without the leading ?
location
string
URI to normalize
currentLocation?
string = '/'
current absolute location. Allows resolving relative paths. Must start with /. Defaults to /
Returns
LocationNormalized
a normalized history location
