From 5b8a19b2adff190ada7a607ba86a8df762f6e0eb Mon Sep 17 00:00:00 2001 From: Brian Bjarke Jensen Date: Wed, 12 Nov 2025 15:53:35 +0100 Subject: [PATCH] streamlined manual entry redirects back to related overview page --- src/baby_monitor/static/log-diaper.html | 4 ++-- src/baby_monitor/static/log-feeding.html | 2 +- src/baby_monitor/static/log-sleep.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/baby_monitor/static/log-diaper.html b/src/baby_monitor/static/log-diaper.html index 50cf19a..f0e39ee 100644 --- a/src/baby_monitor/static/log-diaper.html +++ b/src/baby_monitor/static/log-diaper.html @@ -235,7 +235,7 @@ @@ -431,7 +431,7 @@ "success", ); setTimeout(() => { - window.location.href = "/"; + window.location.href = "/diapers.html"; }, 1000); } else { const errorData = await response.json(); diff --git a/src/baby_monitor/static/log-feeding.html b/src/baby_monitor/static/log-feeding.html index 42fa6b5..5d5c37d 100644 --- a/src/baby_monitor/static/log-feeding.html +++ b/src/baby_monitor/static/log-feeding.html @@ -394,7 +394,7 @@ } function goBack() { - window.location.href = "/"; + window.location.href = "/feedings.html"; } diff --git a/src/baby_monitor/static/log-sleep.html b/src/baby_monitor/static/log-sleep.html index df22b0a..85cc3cf 100644 --- a/src/baby_monitor/static/log-sleep.html +++ b/src/baby_monitor/static/log-sleep.html @@ -378,7 +378,7 @@ } function goBack() { - window.location.href = "/"; + window.location.href = "/sleep.html"; }