From bebca9ce0bf82e6173372e013be8343d355b9d27 Mon Sep 17 00:00:00 2001 From: "Marc A. Modrow" Date: Tue, 31 Oct 2017 19:48:12 +0100 Subject: [PATCH] fix: make parseUrl helper always have a protocl (#4673) Fixes #3100. --- src/js/utils/url.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/js/utils/url.js b/src/js/utils/url.js index 0136cec45..aa0ae445d 100644 --- a/src/js/utils/url.js +++ b/src/js/utils/url.js @@ -81,6 +81,10 @@ export const parseUrl = function(url) { details.host = details.host.replace(/:443$/, ''); } + if (!details.protocol) { + details.protocol = window.location.protocol; + } + if (addToBody) { document.body.removeChild(div); }