Returns a new URL where the percent encoding of URL.pathname has been normalized. In contrast to decodeURIComponent, this method does not throw an error if an invalid percent encoding is found.
URL.pathname
Returns a new URL where the percent encoding of
URL.pathnamehas been normalized. In contrast to decodeURIComponent, this method does not throw an error if an invalid percent encoding is found.