Skip to content

Commit

Permalink
Fix wrong redirect on org labels (go-gitea#18128)
Browse files Browse the repository at this point in the history
  • Loading branch information
KN4CK3R authored and Stelios Malathouras committed Mar 28, 2022
1 parent 8e77e88 commit 57a49f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/web/org/org_labels.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func DeleteLabel(ctx *context.Context) {
func InitializeLabels(ctx *context.Context) {
form := web.GetForm(ctx).(*forms.InitializeLabelsForm)
if ctx.HasError() {
ctx.Redirect(ctx.Repo.RepoLink + "/labels")
ctx.Redirect(ctx.Org.OrgLink + "/labels")
return
}

Expand Down

0 comments on commit 57a49f3

Please sign in to comment.