From 68cb2bf78ada82e9404fa6aa626184ae612d89a5 Mon Sep 17 00:00:00 2001 From: ai-bot Date: Fri, 16 Oct 2026 17:57:36 +0000 Subject: [PATCH] After saving, open the new check on the history page at #history-detail (32.7 follow-up point 3) --- static/health-check.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/health-check.js b/static/health-check.js index 585ea33..49d8a5a 100644 --- a/static/health-check.js +++ b/static/health-check.js @@ -690,7 +690,9 @@ async function saveHealthCheck() { } const saved = await response.json(); saveStatus.textContent = "Health check saved."; - const target = `/history?id=${encodeURIComponent(saved.id)}`; + // The saved check is opened on the history page, so the anchor of the detail + // section is part of the target (section 32.7 follow-up point 3). + const target = `/history?id=${encodeURIComponent(saved.id)}#history-detail`; window.location.assign(target); } catch (error) { saveStatus.textContent = error.message;