summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2021-12-30 07:44:42 +0100
committerGitHub <noreply@github.com>2021-12-30 07:44:42 +0100
commit67d7ad681a1c66d2e08e50d16a6ea2507a0cb0ec (patch)
treec33c737016946857a4a8daf5c98708f65d64c38b /routers
parent626b10794fbc8b834883d96640767fa09b0a499d (diff)
downloadgitea-67d7ad681a1c66d2e08e50d16a6ea2507a0cb0ec.tar.gz
gitea-67d7ad681a1c66d2e08e50d16a6ea2507a0cb0ec.zip
Fix wrong redirect on org labels (#18128)
Diffstat (limited to 'routers')
-rw-r--r--routers/web/org/org_labels.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/org/org_labels.go b/routers/web/org/org_labels.go
index 7a8aa184b2..9cc9a92507 100644
--- a/routers/web/org/org_labels.go
+++ b/routers/web/org/org_labels.go
@@ -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
}