Skip to content

Commit 9d05b0b

Browse files
Better login feel
1 parent 9965832 commit 9d05b0b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/admin/handlers.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ func (h *Handler) AdminAuthHandler(c echo.Context) error {
7878
MaxAge: 86400, // 24 hours
7979
})
8080

81-
return c.Redirect(http.StatusFound, "/admin")
81+
c.Response().Header().Set("HX-Redirect", "/admin")
82+
return c.NoContent(http.StatusOK)
8283
}
8384

8485
func (h *Handler) AdminEditorHandler(c echo.Context) error {

0 commit comments

Comments
 (0)