Fix incorrect params when building controller redirect route url.

This commit is contained in:
mikestefanello 2022-07-08 09:58:42 -04:00
parent c0a7c9e3b1
commit bfe56d7a31
2 changed files with 7 additions and 3 deletions

View file

@ -152,7 +152,7 @@ func (c *Controller) cachePage(ctx echo.Context, page Page, html *bytes.Buffer)
// Redirect redirects to a given route name with optional route parameters
func (c *Controller) Redirect(ctx echo.Context, route string, routeParams ...interface{}) error {
url := ctx.Echo().Reverse(route, routeParams)
url := ctx.Echo().Reverse(route, routeParams...)
if htmx.GetRequest(ctx).Boosted {
htmx.Response{