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 @@