From 09c645da6857cb03ff35833e2fe1a905773656b8 Mon Sep 17 00:00:00 2001 From: Johno Crawford Date: Thu, 3 Oct 2024 09:52:46 +0200 Subject: [PATCH] Correct graphite 'target' param serialization with traditional $.param --- nsqadmin/static/js/lib/handlebars_helpers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nsqadmin/static/js/lib/handlebars_helpers.js b/nsqadmin/static/js/lib/handlebars_helpers.js index de5284db4..cd643aac0 100644 --- a/nsqadmin/static/js/lib/handlebars_helpers.js +++ b/nsqadmin/static/js/lib/handlebars_helpers.js @@ -257,7 +257,7 @@ Handlebars.registerHelper('sparkline', function(typ, node, ns1, ns2, key) { return 'summarize(' + t + ',"' + interval + '","avg")'; }); - return AppState.get('GRAPHITE_URL') + '/render?' + $.param(q); + return AppState.get('GRAPHITE_URL') + '/render?' + $.param(q, true); }); Handlebars.registerHelper('large_graph', function(typ, node, ns1, ns2, key) { @@ -283,7 +283,7 @@ Handlebars.registerHelper('large_graph', function(typ, node, ns1, ns2, key) { return 'summarize(' + t + ',"' + interval + '","avg")'; }); - return AppState.get('GRAPHITE_URL') + '/render?' + $.param(q); + return AppState.get('GRAPHITE_URL') + '/render?' + $.param(q, true); }); Handlebars.registerHelper('rate', function(typ, node, ns1, ns2) {