Fix wrong redirect on org labels (#18128)

tokarchuk/v1.17
KN4CK3R 3 years ago committed by GitHub
parent 626b10794f
commit 67d7ad681a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      routers/web/org/org_labels.go

@ -96,7 +96,7 @@ func DeleteLabel(ctx *context.Context) {
func InitializeLabels(ctx *context.Context) { func InitializeLabels(ctx *context.Context) {
form := web.GetForm(ctx).(*forms.InitializeLabelsForm) form := web.GetForm(ctx).(*forms.InitializeLabelsForm)
if ctx.HasError() { if ctx.HasError() {
ctx.Redirect(ctx.Repo.RepoLink + "/labels") ctx.Redirect(ctx.Org.OrgLink + "/labels")
return return
} }

Loading…
Cancel
Save