From ccce0440f8dde31e1adf779b7c879760f171b36d Mon Sep 17 00:00:00 2001 From: Tine Date: Thu, 15 Feb 2024 23:55:48 +0100 Subject: [PATCH] fix(healthcheck): redirect after post --- internal/handlers/settingshealthchecks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/handlers/settingshealthchecks.go b/internal/handlers/settingshealthchecks.go index a1de2c3..3298333 100644 --- a/internal/handlers/settingshealthchecks.go +++ b/internal/handlers/settingshealthchecks.go @@ -132,5 +132,5 @@ func (h *BaseHandler) SettingsHealthchecksCreatePOST(w http.ResponseWriter, r *h } h.db.Create(healthcheck) - http.Redirect(w, r, "/settings/healthchecks", http.StatusTemporaryRedirect) + http.Redirect(w, r, "/settings/healthchecks", http.StatusSeeOther) }