diff --git a/views/menu.tpl b/views/menu.tpl index 1cabb40be..42b0efc0e 100644 --- a/views/menu.tpl +++ b/views/menu.tpl @@ -194,9 +194,9 @@ function ping() { $.ajax({ - url: protocol + '://' + public_ip + ':{{port}}{{base_url}}', + url: protocol + '//' + public_ip + ':{{port}}{{base_url}}', success: function(result) { - window.location.href= protocol + '://' + public_ip + ':{{port}}{{base_url}}'; + window.location.href= protocol + '//' + public_ip + ':{{port}}{{base_url}}'; } }); } diff --git a/views/system.tpl b/views/system.tpl index 7022ee5c5..c92bc9e97 100644 --- a/views/system.tpl +++ b/views/system.tpl @@ -250,9 +250,9 @@ function ping() { $.ajax({ - url: protocol + '://' + public_ip + ':{{port}}{{base_url}}', + url: protocol + '//' + public_ip + ':{{port}}{{base_url}}', success: function(result) { - window.location.href= protocol + '://' + public_ip + ':{{port}}{{base_url}}'; + window.location.href= protocol + '//' + public_ip + ':{{port}}{{base_url}}'; } }); }