aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/org/org_labels.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web/org/org_labels.go')
-rw-r--r--routers/web/org/org_labels.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/routers/web/org/org_labels.go b/routers/web/org/org_labels.go
index 08566637a8..a9f9e963d4 100644
--- a/routers/web/org/org_labels.go
+++ b/routers/web/org/org_labels.go
@@ -90,9 +90,7 @@ func DeleteLabel(ctx *context.Context) {
ctx.Flash.Success(ctx.Tr("repo.issues.label_deletion_success"))
}
- ctx.JSON(http.StatusOK, map[string]any{
- "redirect": ctx.Org.OrgLink + "/settings/labels",
- })
+ ctx.JSONRedirect(ctx.Org.OrgLink + "/settings/labels")
}
// InitializeLabels init labels for an organization