From b170c06d5cd77d15d36105e6530ec99eb7e390e9 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 18 Feb 2017 12:18:34 +0000 Subject: [PATCH 1/1] Preserve protocol in standard links --- app/assets/javascripts/leaflet.map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/leaflet.map.js b/app/assets/javascripts/leaflet.map.js index 1edb1ae4b..e499795be 100644 --- a/app/assets/javascripts/leaflet.map.js +++ b/app/assets/javascripts/leaflet.map.js @@ -107,7 +107,7 @@ L.OSM.Map = L.Map.extend({ params.mlon = latLng.lng.toFixed(precision); } - var url = 'http://' + OSM.SERVER_URL + '/', + var url = window.location.protocol + '://' + OSM.SERVER_URL + '/', query = querystring.stringify(params), hash = OSM.formatHash(this); -- 2.39.5