Skip to content
This repository was archived by the owner on Jun 18, 2024. It is now read-only.

Makes site protocol-neutral (possible to run over HTTP or HTTPS) #295

Merged
merged 1 commit into from
Apr 7, 2014
Merged

Conversation

konklone
Copy link
Contributor

If you visit the site right now over HTTPS, at https://project-open-data.github.io, you'll see it renders incorrectly, as some stylesheets are not loaded, and the Github "Fork" button at the bottom is missing.

This PR fixes those, so that the site will run properly over either HTTP or HTTPS. This is done by:

  • Moving the Github button file into the repo itself, as github-buttons recommends.
  • Making the root_url of the site protocol-relative, a common practice to make URLs resolve to whatever protocol the site they're contained in is currently using.

@waldoj
Copy link

waldoj commented Mar 14, 2014

Very sensible improvements—thank you, @konklone!

@KatataK
Copy link

KatataK commented Apr 5, 2014

+1

Should be using ssl by default in all gov work...

@konklone
Copy link
Contributor Author

konklone commented Apr 5, 2014

And just to note, this PR doesn't force the site to run over HTTPS, or change links to prefer the HTTPS version. It fixes incompatibilities, so that the project could start listing its official URL as HTTPS without any trouble, if it wanted to.

@gbinal
Copy link
Contributor

gbinal commented Apr 7, 2014

Looks good. Thanks a bunch, Eric.

@haleyvandyck
Copy link
Contributor

very helpful improvement, thanks @konklone

haleyvandyck pushed a commit that referenced this pull request Apr 7, 2014
Makes site protocol-neutral (possible to run over HTTP or HTTPS)
@haleyvandyck haleyvandyck merged commit b966afb into project-open-data:master Apr 7, 2014
@konklone konklone deleted the https_ready branch April 7, 2014 21:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants