~emersion/alps-dev

move message: stay on the same page after move v1 APPLIED

Zach DeCook: 1
 move message: stay on the same page after move

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~emersion/alps-dev/patches/11335/mbox | git am -3
Learn more about email & git

[PATCH] move message: stay on the same page after move Export this patch

---
 plugins/base/routes.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 {
-- 
2.26.2
Pushed, thanks!