From 39378b147983a0a1515172f4d2324851c1968c81 Mon Sep 17 00:00:00 2001 From: Jonathan Brouwer Date: Fri, 14 Aug 2026 17:41:02 +0200 Subject: [PATCH] Fix "detailed results" button for doc-json benchmarks --- site/frontend/src/pages/detailed-query/page.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/site/frontend/src/pages/detailed-query/page.vue b/site/frontend/src/pages/detailed-query/page.vue index ec93172198..99999b0574 100644 --- a/site/frontend/src/pages/detailed-query/page.vue +++ b/site/frontend/src/pages/detailed-query/page.vue @@ -197,7 +197,12 @@ async function loadData() { // To maintain backwards compatibility of URLs, parse the profile from the // benchmark URL parameter // We turn - into two separate parameters for the backend - const parts = benchmark.split("-"); + let parts: string[]; + if (benchmark.endsWith("-doc-json")) { + parts = [benchmark.slice(0, -"-doc-json"), "doc-json"]; + } else { + parts = benchmark.split("-"); + } const profile = parts[parts.length - 1]; const benchmarkSeparate = parts.slice(0, parts.length - 1).join("-");