From fb2860396ae6d2c417b9fcda36aaa492e4931207 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Tue, 16 Oct 2018 22:04:07 -0400 Subject: [PATCH] Fix for incorrect reloading URL --- views/menu.tpl | 4 ++-- views/system.tpl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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}}'; } }); }