mirror of
https://github.com/cubixle/tuu.git
synced 2026-04-24 20:04:43 +01:00
flash on redirect
This commit is contained in:
@@ -133,6 +133,8 @@ func (d *DefaultContext) Render(status int, rr render.Renderer) error {
|
||||
}
|
||||
|
||||
func (d *DefaultContext) Redirect(status int, url string) error {
|
||||
d.Flash().persist(d.Session())
|
||||
|
||||
http.Redirect(d.Response(), d.Request(), url, status)
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user