Unset iTerm as the https:// handler
Download and install RCDefault and change all URLs associated to iTerm2 to their proper apps, especially https.



To unset iTerm2 handling particular URLs open the Apps tab, navigate to iTerm2 and untick those URLs.