Normalizes a URL by removing default ports and collapsing repeated pathname slashes
if the input is not a valid absolute URL
Normalizes a URL by removing default ports and collapsing repeated pathname slashes