aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorZach DeCook <zdecook@ccel.org>2020-06-25 13:50:05 -0400
committerSimon Ser <contact@emersion.fr>2020-06-29 16:31:48 +0200
commit0aff774c5d15fd3f63b8e2e586706b2802e13a4e (patch)
tree708b54272b2fc64734344d7486bfc007b6805d8f /plugins
parent1f9fe0b169c1cf458049b85d7fcee4236f06e5d9 (diff)
downloadalps-0aff774c5d15fd3f63b8e2e586706b2802e13a4e.tar.gz
alps-0aff774c5d15fd3f63b8e2e586706b2802e13a4e.zip
Stay on the same page after moving a message
Diffstat (limited to 'plugins')
-rw-r--r--plugins/base/routes.go2
1 files changed, 1 insertions, 1 deletions
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 {