Skip to content

Commit 03d9242

Browse files
authored
Set rel="nofollow noindex" on new issue links (#19023) (#19042)
Backport #19023 Fix #19018 Signed-off-by: Andrew Thornton <[email protected]>
1 parent bc1248e commit 03d9242

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/repo/view_file.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
<div class="column">
126126
{{if $.Permission.CanRead $.UnitTypeIssues}}
127127
<div class="ui link list">
128-
<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>
128+
<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>
129129
</div>
130130
{{end}}
131131
<div class="ui link list">

0 commit comments

Comments
 (0)