Need to handle case when the url is http and not https