Skip to content
This repository has been archived by the owner on Aug 10, 2021. It is now read-only.

Commit

Permalink
Do not mark internal links as nofollow
Browse files Browse the repository at this point in the history
  • Loading branch information
laurens authored and futhr committed Oct 5, 2015
1 parent 902f823 commit 79172af
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -2,5 +2,5 @@
<li><%= link_to page.title, page.foreign_link, target: '_blank', ref: 'nofollow' %></li>
<% else %>
<% page_uri = Rails.application.routes.named_routes[:spree].path.spec.to_s == '/' ? page.slug : Rails.application.routes.named_routes[:spree].path.spec.to_s + page.slug %>
<li class="<%= 'current' if (request.fullpath.gsub('//','/') == page_uri) %>"><%= link_to page.title, page_uri, ref: 'nofollow' %></li>
<li class="<%= 'current' if (request.fullpath.gsub('//','/') == page_uri) %>"><%= link_to page.title, page_uri %></li>
<% end %>

0 comments on commit 79172af

Please sign in to comment.