Always use c.JSON in HandleSessionCheck
This commit is contained in:
parent
2ec59e96eb
commit
23ab67e8fc
|
@ -177,7 +177,7 @@ func HandleSessionCheck(sc context.Context) echo.HandlerFunc {
|
|||
c.Response().Header().Set("HX-Location", "/")
|
||||
// htmx requires a 200 response to follow redirects
|
||||
// see https://github.com/bigskysoftware/htmx/issues/2052
|
||||
return c.HTML(http.StatusOK, "/")
|
||||
return c.JSON(http.StatusOK, nil)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue