code: def _initURL(self, serverUrl=None):
          
          self._serverUrl = serverUrl
  
          parsed_url = urlparse(self._serverUrl)
          self._parsed_org_url = urlunparse((parsed_url[0],parsed_url[1],"","","",""))
          self._referer = parsed_url.netloc
docs: sets proper URLs for AGOL