currentURL() HTTPS fix