After saving, open the new check on the history page at #history-detail (32.7 follow-up point 3)

This commit is contained in:
ai-bot committed 2026-10-16 17:57:36 +00:00
1 parent 0020d4be55
commit 68cb2bf78a
1 file changed
+3 -1
+3 -1
View File
@@ -690,7 +690,9 @@ async function saveHealthCheck() {
} }
const saved = await response.json(); const saved = await response.json();
saveStatus.textContent = "Health check saved."; 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); window.location.assign(target);
} catch (error) { } catch (error) {
saveStatus.textContent = error.message; saveStatus.textContent = error.message;