flash on redirect

This commit is contained in:
2018-04-07 20:41:22 +01:00
parent 0c76bb1802
commit ef6e1a8b2f

View File

@@ -133,6 +133,8 @@ func (d *DefaultContext) Render(status int, rr render.Renderer) error {
} }
func (d *DefaultContext) Redirect(status int, url string) error { func (d *DefaultContext) Redirect(status int, url string) error {
d.Flash().persist(d.Session())
http.Redirect(d.Response(), d.Request(), url, status) http.Redirect(d.Response(), d.Request(), url, status)
return nil return nil
} }