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