seo: add rel=nofollow to various internal search links.

Add rel=nofollow to various internal search links to prevent Google from
attempting to crawl things like `<tag> status:deleted` or `approver:<name>`
searches.
This commit is contained in:
evazion
2020-07-03 14:39:23 -05:00
parent 629a634b22
commit 99e88b3dae
8 changed files with 18 additions and 18 deletions

View File

@@ -23,7 +23,7 @@
<% end %>
<% if @wiki_page.new_record? %>
<p>This wiki page does not exist. <%= link_to "Create new wiki page", new_wiki_page_path(wiki_page: { title: @wiki_page.title }) %>.</p>
<p>This wiki page does not exist. <%= link_to "Create new wiki page", new_wiki_page_path(wiki_page: { title: @wiki_page.title }), rel: "nofollow" %>.</p>
<% else %>
<%= format_text(@wiki_page.body) %>
<% end %>