Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
At present, it is not possible to enter the URL source for OpenLayers.js
using // before the domain name (RFC 1808, Section 4) which allows the browser to determine which protocol to use to retreive the file (HTTPS / HTTP). eg. //www.example.com/js/OpenLayers.js
While openlayers.org itself does not support HTTPS (eg. https://openlayers.org/dev/OpenLayers.js), we use a file from our CDN which does support HTTPS.
Patch attached.
Comment | File | Size | Author |
---|---|---|---|
#3 | 0001-Issue-1694048-JS-file-URL-openlayers_source-should-r.patch | 2.36 KB | Pol |
#1 | openlayers_rfc_1808_2.patch | 1.67 KB | andrewsuth |
openlayers_rfc_1808.patch | 745 bytes | andrewsuth | |
Comments
Comment #1
andrewsuth CreditAttribution: andrewsuth commentedAdded user explanation of the use of the double slash.
Comment #2
PolHello @andrewsuth,
Thanks for your patch!
I'm willing to commit it but I need a patch for OL 7.x then I'll commit this patch to OL 6.x.
Thanks
Comment #3
PolPatch for 7.x-2.x
Comment #4
PolComment #5
PolCommitted on 7.x & 6.x.
Thanks andrewsuth !