aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeripath2022-03-07 22:08:05 +0000
committerGitHub2022-03-07 17:08:05 -0500
commit78b38a5ccc1181f7224700f07148c171ce88c938 (patch)
treeaa845d79c445b32e3152fefc86bc1e42020dd745
parent9c5696e428347b873d522f9299f1cb8c55b33ea9 (diff)
Set `rel="nofollow noindex"` on new issue links (#19023)
Fix #19018 Signed-off-by: Andrew Thornton <art27@cantab.net>
-rw-r--r--templates/repo/view_file.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl
index dc62e249b..9e1d83b83 100644
--- a/templates/repo/view_file.tmpl
+++ b/templates/repo/view_file.tmpl
@@ -125,7 +125,7 @@
<div class="column">
{{if $.Permission.CanRead $.UnitTypeIssues}}
<div class="ui link list">
- <a class="item ref-in-new-issue" href="{{.RepoLink}}/issues/new?body={{.Repository.HTMLURL}}{{printf "/src/commit/" }}{{PathEscape .CommitID}}/{{PathEscapeSegments .TreePath}}">{{.i18n.Tr "repo.issues.context.reference_issue"}}</a>
+ <a class="item ref-in-new-issue" href="{{.RepoLink}}/issues/new?body={{.Repository.HTMLURL}}{{printf "/src/commit/" }}{{PathEscape .CommitID}}/{{PathEscapeSegments .TreePath}}" rel="nofollow noindex">{{.i18n.Tr "repo.issues.context.reference_issue"}}</a>
</div>
{{end}}
<div class="ui link list">