We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9965832 commit 9d05b0bCopy full SHA for 9d05b0b
internal/admin/handlers.go
@@ -78,7 +78,8 @@ func (h *Handler) AdminAuthHandler(c echo.Context) error {
78
MaxAge: 86400, // 24 hours
79
})
80
81
- return c.Redirect(http.StatusFound, "/admin")
+ c.Response().Header().Set("HX-Redirect", "/admin")
82
+ return c.NoContent(http.StatusOK)
83
}
84
85
func (h *Handler) AdminEditorHandler(c echo.Context) error {
0 commit comments