From 792a820c908111ac05cf261abfc4f7772a89c374 Mon Sep 17 00:00:00 2001 From: oppiliappan Date: Mon, 15 Jun 2026 13:38:19 +0100 Subject: [PATCH] appview/notifications: fix title change on mark-all-read when hitting mark-all-read, due to full page refresh, any page title would be replaced with "notifications". this patch fixes that by avoiding full page redirect. Signed-off-by: oppiliappan --- appview/notifications/notifications.go | 2 +- appview/pages/templates/notifications/fragments/preview.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/appview/notifications/notifications.go b/appview/notifications/notifications.go index 261f9f60..d6978f96 100644 --- a/appview/notifications/notifications.go +++ b/appview/notifications/notifications.go @@ -279,7 +279,7 @@ func (n *Notifications) markAllRead(w http.ResponseWriter, r *http.Request) { return } - http.Redirect(w, r, "/notifications", http.StatusSeeOther) + w.WriteHeader(http.StatusOK) } func (n *Notifications) deleteNotification(w http.ResponseWriter, r *http.Request) { diff --git a/appview/pages/templates/notifications/fragments/preview.html b/appview/pages/templates/notifications/fragments/preview.html index e304944b..3fc8af13 100644 --- a/appview/pages/templates/notifications/fragments/preview.html +++ b/appview/pages/templates/notifications/fragments/preview.html @@ -23,7 +23,7 @@