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:
@@ -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 %>
|
||||
|
||||
Reference in New Issue
Block a user