2016-01-20 Testing protocol-relative hyperlinks with letsencrypt in mind 2 years ago
I am pondering making my websites available via https using a Let's Encrypt certificate which are free and support multiple servernames. Currently I have one HTTPS site running with a certificate signed by my own CA which is only trusted by my own systems. Chances are that I will find lots of places where I will get mixed-content warnings and things that will break. So switching to https-only will have to wait. But the good news is that it's possible to omit the protocol from a hyperlink, leading to the following bit of HTML code in Nice APRS track this morning:<img src="//idefix.net/~koos/pics/aprs-PD4KH-20160108.png" alt="APRS track PD4KH 20160108" title="APRS track PD4KH 20160108"><br>This will keep working when idefix.net becomes reachable via https and will not give a mixed-content warning. I just have to make sure the http and https versions of idefix.net work exactly the same. At the moment this works fine, even when viewing the RSS feed using sage. According to Can I change all my http:// links to just //? on stackoverflow the number of browsers that don't support this is very small.