diff --git a/routers/web/repo/webhook.go b/routers/web/repo/webhook.go index a21b405c9676..46b0f4910819 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 }