From 0aff774c5d15fd3f63b8e2e586706b2802e13a4e Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Thu, 25 Jun 2020 13:50:05 -0400 Subject: Stay on the same page after moving a message --- plugins/base/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/base/routes.go b/plugins/base/routes.go index d3ff371..b519a6b 100644 --- a/plugins/base/routes.go +++ b/plugins/base/routes.go @@ -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 { -- cgit v1.2.3