diff --git a/routers/web/repo/view.go b/routers/web/repo/view.go index db163410cf..f1445c580a 100644 --- a/routers/web/repo/view.go +++ b/routers/web/repo/view.go @@ -781,7 +781,8 @@ func checkCitationFile(ctx *context.Context, entry *git.TreeEntry) { if content, err := entry.Blob().GetBlobContent(setting.UI.MaxDisplayFileSize); err != nil { log.Error("checkCitationFile: GetBlobContent: %v", err) } else { - ctx.Data["CitiationExist"] = true + ctx.Data["CitationExist"] = true + ctx.Data["CitationFile"] = entry.Name() ctx.PageData["citationFileContent"] = content break } diff --git a/templates/repo/cite/cite_modal.tmpl b/templates/repo/cite/cite_modal.tmpl index fb251442ca..1ce959a5c5 100644 --- a/templates/repo/cite/cite_modal.tmpl +++ b/templates/repo/cite/cite_modal.tmpl @@ -6,7 +6,7 @@