diff --git a/index.lp b/index.lp index f5b3513e..320bdef0 100644 --- a/index.lp +++ b/index.lp @@ -22,7 +22,7 @@ mg.include('scripts/lua/header_authenticated.lp','r')
- + - active clients @@ -38,7 +38,7 @@ mg.include('scripts/lua/header_authenticated.lp','r')
- + List blocked queries @@ -54,7 +54,7 @@ mg.include('scripts/lua/header_authenticated.lp','r')
- + List all queries @@ -70,7 +70,7 @@ mg.include('scripts/lua/header_authenticated.lp','r')
- + Manage lists diff --git a/scripts/js/charts.js b/scripts/js/charts.js index 83c99270..1fbc8fe7 100644 --- a/scripts/js/charts.js +++ b/scripts/js/charts.js @@ -97,11 +97,11 @@ const htmlLegendPlugin = { textLink.addEventListener("click", () => { if (chart.canvas.id === "queryTypePieChart") { - globalThis.location.href = "queries.lp?type=" + item.text; + globalThis.location.href = "queries?type=" + item.text; } else if (chart.canvas.id === "forwardDestinationPieChart") { // Encode the forward destination as it may contain an "#" character const upstream = encodeURIComponent(upstreams[item.text]); - globalThis.location.href = "queries.lp?upstream=" + upstream; + globalThis.location.href = "queries?upstream=" + upstream; } }); } diff --git a/scripts/js/gravity.js b/scripts/js/gravity.js index e21fe91d..44077ff2 100644 --- a/scripts/js/gravity.js +++ b/scripts/js/gravity.js @@ -68,7 +68,7 @@ $(function () { }); // Do we want to start updating immediately? - // gravity.lp?go + // gravity?go var searchString = globalThis.location.search.substring(1); if (searchString.indexOf("go") !== -1) { $("#gravityBtn").prop("disabled", true); diff --git a/scripts/js/index.js b/scripts/js/index.js index cfd67bf4..114984fd 100644 --- a/scripts/js/index.js +++ b/scripts/js/index.js @@ -305,7 +305,7 @@ function updateTopClientsTable(blocked) { let clientname = client.name; if (clientname.length === 0) clientname = client.ip; url = - '' + @@ -366,7 +366,7 @@ function updateTopDomainsTable(blocked) { // Substitute "." for empty domain lookups urlText = domain === "" ? "." : domain; url = - '' + @@ -797,7 +797,7 @@ $(function () { //get value by index var from = label / 1000 - 300; var until = label / 1000 + 300; - globalThis.location.href = "queries.lp?from=" + from + "&until=" + until; + globalThis.location.href = "queries?from=" + from + "&until=" + until; } return false; @@ -820,7 +820,7 @@ $(function () { //get value by index var from = label / 1000 - 300; var until = label / 1000 + 300; - globalThis.location.href = "queries.lp?from=" + from + "&until=" + until; + globalThis.location.href = "queries?from=" + from + "&until=" + until; } return false; diff --git a/scripts/js/login.js b/scripts/js/login.js index 72d95111..b8ce0aa3 100644 --- a/scripts/js/login.js +++ b/scripts/js/login.js @@ -16,7 +16,7 @@ function redirect() { // If DNS failure: send to Pi-hole diagnosis messages page if ($("#dns-failure-label").is(":visible")) { - target = "messages.lp"; + target = "messages"; } // Redirect to target diff --git a/scripts/js/network.js b/scripts/js/network.js index 0992ca44..0c0d0dfc 100644 --- a/scripts/js/network.js +++ b/scripts/js/network.js @@ -163,7 +163,7 @@ $(function () { // Only add IPs to the table if we have not reached the maximum if (index < MAXIPDISPLAY) { - ips.push('' + iptext + ""); + ips.push('' + iptext + ""); } } diff --git a/scripts/js/search.js b/scripts/js/search.js index 8aa588cb..ada949ae 100644 --- a/scripts/js/search.js +++ b/scripts/js/search.js @@ -64,7 +64,7 @@ function doSearch() { for (const domain of res.domains) { const color = domain.type === "deny" ? "red" : "green"; result += - " - " + utils.escapeHtml(domain.domain) + @@ -118,7 +118,7 @@ function doSearch() { const list = grouped[listId][0]; const color = list.type === "block" ? "red" : "green"; result += - " - " + utils.escapeHtml(list.address) +