code: function getCleanUrl (url) {
    try {
      const parsed = new URL(url)
      return parsed.pathname || url
    } catch (err) {
      return url
    }
  }
docs: Returns the pathname part of the given url
  
  @param  {String} url
  
  @return {String}