From 6625f167026127856ba7b6318ab1ccae10561468 Mon Sep 17 00:00:00 2001 From: Binnette Date: Thu, 20 Feb 2020 21:33:41 +0100 Subject: [PATCH] Remove protocol from iframe src url Note that baseUrl is only used for iframe src url, nothing else --- umap/static/umap/js/umap.controls.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/static/umap/js/umap.controls.js b/umap/static/umap/js/umap.controls.js index ed257d13..82425e25 100644 --- a/umap/static/umap/js/umap.controls.js +++ b/umap/static/umap/js/umap.controls.js @@ -1033,7 +1033,7 @@ L.U.IframeExporter = L.Evented.extend({ initialize: function (map) { this.map = map; - this.baseUrl = window.location.protocol + '//' + window.location.host + window.location.pathname; + this.baseUrl = '//' + window.location.host + window.location.pathname; // Use map default, not generic default this.queryString.onLoadPanel = this.map.options.onLoadPanel; },