Skip to content

Commit 5463668

Browse files
zeripathStelios Malathouras
authored and
Stelios Malathouras
committed
Set rel="nofollow noindex" on new issue links (go-gitea#19023)
Fix go-gitea#19018 Signed-off-by: Andrew Thornton <[email protected]>
1 parent 8e2632d commit 5463668

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/repo/view_file.tmpl

Lines changed: 1 addition & 1 deletion
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)