src/Router.js
function urlPathQuery() {
    const hashSlash = location.href.indexOf(hashSlashString)
    let pathQuery

    if (hashSlash > -1)
      pathQuery = location.href.slice(hashSlash + hashSlashString.length)
    else if (isHashMode())
      pathQuery = '/'
    else
      pathQuery = (location.pathname + location.search).slice(1)

    return util.normalizePathQuery(pathQuery)
  }
function urlPathQuery() {
    const hashSlash = location.href.indexOf(hashSlashString)
    let pathQuery

    if (hashSlash > -1)
      pathQuery = location.href.slice(hashSlash + hashSlashString.length)
    else if (isHashMode())
      pathQuery = '/'
    else
      pathQuery = (location.pathname + location.search).slice(1)

    return util.normalizePathQuery(pathQuery)
  }
/*
Read the path/query from the URL.