mirror of
https://gitee.com/gitea/gitea.git
synced 2024-12-03 12:17:51 +08:00
Fix wrong redirect on org labels (#18128)
This commit is contained in:
parent
626b10794f
commit
67d7ad681a
@ -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…
Reference in New Issue
Block a user