From ed22ffa810f3677781b34bea012e63c2059d6dec Mon Sep 17 00:00:00 2001 From: Jaime Melis Date: Fri, 29 Jul 2016 12:02:49 +0200 Subject: [PATCH] Fix redirect port (always to http) (cherry picked from commit eef1ee6d4f34c3ebdf6c7cb6e764169d36e8e69d) --- src/sunstone/public/app/tabs/upgrade-top-tab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sunstone/public/app/tabs/upgrade-top-tab.js b/src/sunstone/public/app/tabs/upgrade-top-tab.js index 815a217c7d..7df99b7544 100644 --- a/src/sunstone/public/app/tabs/upgrade-top-tab.js +++ b/src/sunstone/public/app/tabs/upgrade-top-tab.js @@ -33,7 +33,7 @@ define(function(require) { var upgrade_url = config['upgrade']['url']; if (redirect_port) { - window.location = document.URL.replace(/(https?:\/\/)([^:\/]+).*$/,"$1$2:"+redirect_port) + window.location = document.URL.replace(/(https?:\/\/)([^:\/]+).*$/,"http://$2:"+redirect_port) } else { window.location = upgrade_url }