From a18651b4e09fb7bff553d7fb10fbb69043debef2 Mon Sep 17 00:00:00 2001 From: BroodjeAap Date: Sun, 9 Oct 2022 15:55:52 +0000 Subject: [PATCH] fixed redirect on post create watch --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index fb5478a..7a1a348 100644 --- a/main.go +++ b/main.go @@ -184,7 +184,7 @@ func (web *Web) watchCreatePost(c *gin.Context) { return } web.db.Create(&watch) - c.Redirect(http.StatusSeeOther, fmt.Sprintf("/watch/%d", watch.ID)) + c.Redirect(http.StatusSeeOther, fmt.Sprintf("/watch/edit/%d", watch.ID)) } func (web *Web) deleteWatch(c *gin.Context) {