ogallagher / tejos_textiles

An online arts journal for publishing works in a new medium
MIT License
1 stars 0 forks source link

Force https connection #18

Closed ogallagher closed 4 years ago

ogallagher commented 4 years ago

I just wondered whether the client side could detect if the site location is http or https protocol, and the switch automatically to the more secure https before loading the rest of the page. It turns out this is pretty easy to do, so I’ll add that function as well.

ogallagher commented 4 years ago

Done, added force_https.js to the <head> of all webpages. It’s a bit redundant to then call the method within every <page>.js, but I think it’s worth legibility.