From cfa539e590127b4b953b010fba3dea21c82a1714 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Tue, 11 Jul 2023 01:21:35 +0200 Subject: [PATCH] [MODERATION] restore redirect on unblock ctx.RedirectToFirst(ctx.FormString("redirect_to"), ctx.ContextUser.HomeLink()) was replaced by ctx.JSONOK() in 128d77a3a Following up fixes for "Fix inconsistent user profile layout across tabs" (#25739) thus changing the behavior (nicely spotted by the tests). This restores it. (cherry picked from commit 597c243707c3c86e7256faf1e6ba727224554de3) --- routers/web/user/profile.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/routers/web/user/profile.go b/routers/web/user/profile.go index 4c6fe605b7..e3046e48d1 100644 --- a/routers/web/user/profile.go +++ b/routers/web/user/profile.go @@ -314,6 +314,5 @@ func Action(ctx *context.Context) { }) return } - - ctx.JSONOK() + ctx.RedirectToFirst(ctx.FormString("redirect_to"), ctx.ContextUser.HomeLink()) }