diff options
author | Lunny Xiao | 2021-12-31 00:08:42 +0800 |
---|---|---|
committer | GitHub | 2021-12-30 17:08:42 +0100 |
commit | 7e084341feeb584dbfdd6a4bb92f1d3c9ca6fb64 (patch) | |
tree | 8f830dd974bdcba9fad4a1fbe2fc6a48dc0a44c2 | |
parent | 7d75eede04c73d5ca8e7ed5df064cc38a96f911e (diff) |
Fix wrong redirect on org labels (#18128) (#18134)v1.15.9
* Fix wrong redirect on org labels (#18128)
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | routers/web/org/org_labels.go | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 20c3495fc..e4d134145 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ been added to each release, please refer to the [blog](https://blog.gitea.io). ## [1.15.9](https://github.com/go-gitea/gitea/releases/tag/v1.15.9) - 2021-12-30 * BUGFIXES + * Fix wrong redirect on org labels (#18128) (#18134) * Fix: unstable sort skips/duplicates issues across pages (#18094) (#18095) * Revert "Fix delete u2f keys bug (#18042)" (#18107) * Migrating wiki don't require token, so we should move it out of the require form (#17645) (#18104) diff --git a/routers/web/org/org_labels.go b/routers/web/org/org_labels.go index 26e232bcc..c58a250b7 100644 --- a/routers/web/org/org_labels.go +++ b/routers/web/org/org_labels.go @@ -94,7 +94,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 } |