Make both URLs generated be HTTPS

Main code.rev. 1927