fixed redirect on post create watch

This commit is contained in:
BroodjeAap 2022-10-09 15:55:52 +00:00
parent c7134f68b2
commit a18651b4e0

View file

@ -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) {