diff --git a/scripts/pi-hole/js/index.js b/scripts/pi-hole/js/index.js index f56d6360..b94d63ff 100644 --- a/scripts/pi-hole/js/index.js +++ b/scripts/pi-hole/js/index.js @@ -497,7 +497,9 @@ function updateForwardDestinationsPie() { } else if (e.which === 1) { // which == 1 is left mouse button var obj = encodeURIComponent(e.target.textContent); - window.open("queries.php?forwarddest=" + obj, "_self"); + if (obj.length > 0) { + window.open("queries.php?forwarddest=" + obj, "_self"); + } } }); }).done(function () {