function getPathnameFromUrl (u) {
	const pathname = url.parse(u).pathname;
	try {
		return decodeURI(pathname);
	} catch (e) {
		return pathname;
	}
}
Returns decoded pathname from url
Example: https://example.co/path/logo%20(1).svg => /path/logo (1).svg
@param u - url
@returns {string} decoded pathname