isawnyu / awld-js

A javascript library for Ancient World Linked Data.
BSD 3-Clause "New" or "Revised" License
21 stars 7 forks source link

when on https, JS should try all links with that protocol #8

Open paregorios opened 9 years ago

paregorios commented 9 years ago

Currently, if the page containing the JS and links is served over https but the individual links are coded with http URLs, only a blank popup displays on modern browsers (because of mixed content security practices). A better solution would seem to be: if the containing page has been served via HTTPS, rewrite any links to try with HTTPS; if 404 then don't display a pop-up at all.