Fix redirect port (always to http)

This commit is contained in:
Jaime Melis committed 2016-07-29 12:02:49 +02:00
1 parent 24e6050037
commit eef1ee6d4f
1 file changed
+1 -1
@@ -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
}