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

@@ -14,7 +14,7 @@
<% end %>
<% t.column "Other Names", td: {class: "col-expand"} do |artist| %>
<% artist.other_names.each do |name| %>
<%= link_to name, artists_path(search: { any_name_matches: name }), class: "artist-other-name" %>
<%= link_to name, artists_path(search: { any_name_matches: name }), class: "artist-other-name", rel: "nofollow" %>
<% end %>
<% end %>
<% t.column "Status" do |artist| %>

View File

@@ -1,5 +1,5 @@
<%= render layout: "show" do %>
<div>
<p>This artist entry does not exist. <%= link_to "Create new artist entry", new_artist_path(artist: { name: params[:name] }) %>.</p>
<p>This artist entry does not exist. <%= link_to "Create new artist entry", new_artist_path(artist: { name: params[:name] }), rel: "nofollow" %>.</p>
</div>
<% end %>