mirror of
1
Fork 0

[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 597c243707)
This commit is contained in:
Earl Warren 2023-07-11 01:21:35 +02:00
parent 2373c801ee
commit cfa539e590
No known key found for this signature in database
GPG Key ID: 0579CB2928A78A00
1 changed files with 1 additions and 2 deletions

View File

@ -314,6 +314,5 @@ func Action(ctx *context.Context) {
}) })
return return
} }
ctx.RedirectToFirst(ctx.FormString("redirect_to"), ctx.ContextUser.HomeLink())
ctx.JSONOK()
} }