1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-22 17:34:03 +03:00

Fix wrong redirect on org labels (#18128)

This commit is contained in:
KN4CK3R 2021-12-30 07:44:42 +01:00 committed by GitHub
parent 626b10794f
commit 67d7ad681a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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
}