diff --git a/routers/web/repo/webhook.go b/routers/web/repo/webhook.go index a21b405c9..46b0f4910 100644 --- a/routers/web/repo/webhook.go +++ b/routers/web/repo/webhook.go @@ -99,7 +99,7 @@ func getOwnerRepoCtx(ctx *context.Context) (*ownerRepoCtx, error) { IsAdmin: true, IsSystemWebhook: ctx.Params(":configType") == "system-hooks", Link: path.Join(setting.AppSubURL, "/admin/hooks"), - LinkNew: path.Join(setting.AppSubURL, "/admin/system-hooks"), + LinkNew: path.Join(setting.AppSubURL, "/admin/", ctx.Params(":configType")), NewTemplate: tplAdminHookNew, }, nil }