mirror of
https://github.com/go-gitea/gitea
synced 2025-08-13 04:58:19 +00:00
@@ -271,9 +271,5 @@ func Action(ctx *context.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
redirectTo := ctx.Query("redirect_to")
|
||||
if len(redirectTo) == 0 {
|
||||
redirectTo = u.HomeLink()
|
||||
}
|
||||
ctx.Redirect(redirectTo)
|
||||
ctx.RedirectToFirst(ctx.Query("redirect_to"), u.HomeLink())
|
||||
}
|
||||
|
Reference in New Issue
Block a user