diff --git a/routers/web/repo/contributors.go b/routers/web/repo/contributors.go index bcfef7580a6a3..b432ba0b6c198 100644 --- a/routers/web/repo/contributors.go +++ b/routers/web/repo/contributors.go @@ -23,9 +23,11 @@ func Contributors(ctx *context.Context) { ctx.Data["PageIsActivity"] = true ctx.Data["PageIsContributors"] = true - ctx.PageData["contributionType"] = "commits" - - ctx.PageData["repoLink"] = ctx.Repo.RepoLink + ctx.PageData["repoContributorsData"] = map[string]any{ + "contributionType": "commits", + "repoLink": ctx.Repo.RepoLink, + "repoDefaultBranch": ctx.Repo.RefName, + } ctx.HTML(http.StatusOK, tplContributors) } diff --git a/web_src/js/components/RepoContributors.vue b/web_src/js/components/RepoContributors.vue index 84fdcae1f61da..79c3fc91eb729 100644 --- a/web_src/js/components/RepoContributors.vue +++ b/web_src/js/components/RepoContributors.vue @@ -1,5 +1,6 @@