Patching an Issue where https:// is being duplicated in the url occasionally when using over SSL