Stay on the same page after moving a message

This commit is contained in:
Zach DeCook 2020-06-25 13:50:05 -04:00 committed by Simon Ser
parent 1f9fe0b169
commit 0aff774c5d
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

View file

@ -753,7 +753,7 @@ func handleMove(ctx *alps.Context) error {
if path := formOrQueryParam(ctx, "next"); path != "" {
return ctx.Redirect(http.StatusFound, path)
}
return ctx.Redirect(http.StatusFound, fmt.Sprintf("/mailbox/%v", url.PathEscape(to)))
return ctx.Redirect(http.StatusFound, fmt.Sprintf("/mailbox/%v", url.PathEscape(mboxName)))
}
func handleDelete(ctx *alps.Context) error {