From b90d7132a02997f3b336df85109b2b3c2dd3183c Mon Sep 17 00:00:00 2001 From: Javier Lopez Date: Fri, 6 Oct 2017 15:21:43 +0100 Subject: [PATCH] hotfix-4.5.x: swagger fixed for https --- cellbase-server/src/main/webapp/webservices/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cellbase-server/src/main/webapp/webservices/index.html b/cellbase-server/src/main/webapp/webservices/index.html index 8fa949d83f..3871c7a73b 100644 --- a/cellbase-server/src/main/webapp/webservices/index.html +++ b/cellbase-server/src/main/webapp/webservices/index.html @@ -34,8 +34,8 @@ url = decodeURIComponent(url[1]); console.log(url); } else { - url = "http://" + window.location.hostname; - if (window.location.port != "80") { + url = window.location.protocol + "//" + window.location.hostname; + if (window.location.port !== "80") { url += ":" + window.location.port; } // url += "/cellbase/webservices/rest/swagger.json";