From 0be5f5d75f7905f40aa014c332c8e925bea36b91 Mon Sep 17 00:00:00 2001 From: Tony Butler Date: Fri, 15 Dec 2023 12:03:34 +0000 Subject: [PATCH] Use relative path to graph php files in template javascript This fixes a graph display bug for sites located in a wwwroot subdir. --- templates/flamegraph.mustache | 2 +- templates/memoryusagegraph.mustache | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/flamegraph.mustache b/templates/flamegraph.mustache index bdbfd0b..988e344 100644 --- a/templates/flamegraph.mustache +++ b/templates/flamegraph.mustache @@ -91,7 +91,7 @@ function init() { if (window.excimerData === undefined) { setLoading(true); - d3.json('/admin/tool/excimer/flamegraph.json.php?profileid={{id}}') + d3.json('flamegraph.json.php?profileid={{id}}') .then(function(data) { setLoading(false); window.excimerData = data; diff --git a/templates/memoryusagegraph.mustache b/templates/memoryusagegraph.mustache index 1ad650e..766c41d 100644 --- a/templates/memoryusagegraph.mustache +++ b/templates/memoryusagegraph.mustache @@ -84,7 +84,7 @@ const memUsageInit = async () => { if (excimerData === undefined) { setLoading(true); try { - const data = await d3.json('/admin/tool/excimer/memoryusagegraph.json.php?profileid={{id}}') + const data = await d3.json('memoryusagegraph.json.php?profileid={{id}}') setLoading(false); excimerData = data; processGraph('memoryusagegraph', excimerData);