aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/org/setting.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web/org/setting.go')
-rw-r--r--routers/web/org/setting.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/routers/web/org/setting.go b/routers/web/org/setting.go
index f63b2e9f06..5ae61c79be 100644
--- a/routers/web/org/setting.go
+++ b/routers/web/org/setting.go
@@ -219,9 +219,7 @@ func DeleteWebhook(ctx *context.Context) {
ctx.Flash.Success(ctx.Tr("repo.settings.webhook_deletion_success"))
}
- ctx.JSON(http.StatusOK, map[string]any{
- "redirect": ctx.Org.OrgLink + "/settings/hooks",
- })
+ ctx.JSONRedirect(ctx.Org.OrgLink + "/settings/hooks")
}
// Labels render organization labels page