]> source.dussan.org Git - gitea.git/commitdiff
Fix wrong redirect on org labels (#18128)
authorKN4CK3R <admin@oldschoolhack.me>
Thu, 30 Dec 2021 06:44:42 +0000 (07:44 +0100)
committerGitHub <noreply@github.com>
Thu, 30 Dec 2021 06:44:42 +0000 (07:44 +0100)
routers/web/org/org_labels.go

index 7a8aa184b2ba8d17d476b60a8c374020984b4606..9cc9a92507fbfc779e5fdec6bf38d4be2f125912 100644 (file)
@@ -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
        }