Skip to content

Conversation

@c-w
Copy link
Contributor

@c-w c-w commented Feb 21, 2018

A site served over HTTPS can't make requests to resources hosted on HTTP for security reasons. This site currently hard-codes the protocol for a number of non-secure resources, i.e., there are http:// links in the page, which means that the page can't render if served over HTTPS.

Instead of hard-coding the protocol for links, we can simply specify href="// instead of href="http:// or href="https://. This will create links that use the same protocol as what the site is being served via. So if the site is being served over http, the links will be http. If it's being served over https, the links will be https. Given that most sites out there support both https and http anyways, making the links respect the current page protocol is usually a very safe change. As such, this pull request implements the dynamic protocol links.

Also: fix trailing spaces.

@laura-barluzzi laura-barluzzi merged commit 05761b9 into laura-barluzzi:master Feb 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants