cleanPath = rawPathname => {
  const trimmedPathname = trimPathname(absolutify(rawPathname))

  let foundPath = trimmedPathname
  if (foundPath === `/index.html`) {
    foundPath = `/`
  }

  foundPath = normalizePagePath(foundPath)

  return foundPath
}
Clean a url and converts /index.html => /
E.g. `/foo?bar=far` => `/foo`

@param {string} rawPathname A raw pathname
@return {string}