aboutsummaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authoryp05327 <576951401@qq.com>2024-03-14 10:37:15 +0900
committerGitHub <noreply@github.com>2024-03-14 01:37:15 +0000
commit2da13675c0cfdc531044553636c3b74f2fda3eb4 (patch)
tree06b038f45ec567470de832c275e22a5887a9bf01 /routers
parent43de021ac1ca017212ec75fd88a8a80a9db27c4c (diff)
downloadgitea-2da13675c0cfdc531044553636c3b74f2fda3eb4.tar.gz
gitea-2da13675c0cfdc531044553636c3b74f2fda3eb4.zip
Fix incorrect menu/link on webhook edit page (#29709)
Fix #29699 --------- Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to 'routers')
-rw-r--r--routers/web/repo/setting/webhook.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/web/repo/setting/webhook.go b/routers/web/repo/setting/webhook.go
index c8e621fac8..1a3549fea4 100644
--- a/routers/web/repo/setting/webhook.go
+++ b/routers/web/repo/setting/webhook.go
@@ -588,6 +588,7 @@ func checkWebhook(ctx *context.Context) (*ownerRepoCtx, *webhook.Webhook) {
return nil, nil
}
ctx.Data["BaseLink"] = orCtx.Link
+ ctx.Data["BaseLinkNew"] = orCtx.LinkNew
var w *webhook.Webhook
if orCtx.RepoID > 0 {