In mine that variable isn't being populated AT ALL, it pulls the server IP, which then obviously when clicked on, triggers an SSL security warning as certificates are assigned on hostname not IP.
The {{ hostname }} does get properly filled in, so it's an issue with the specific {{...