The main reason to use it was the `rel` attribute for previous/next pages not being indexed correctly by certain search engines when using a relative URL. However, AFAIK that only applied to `<link>` tags, not to `<a>` tags, and only if a `<base>` tag was defined. In any case, it looks like the same search engines don't use the `rel` attribute for previous/next to index pages anymore.
11 lines
289 B
Plaintext
11 lines
289 B
Plaintext
<% if page.current? %>
|
|
<li class="current">
|
|
<span class="show-for-sr"><%= t("views.pagination.current") %></span>
|
|
<%= page %>
|
|
</li>
|
|
<% else %>
|
|
<li>
|
|
<%= link_to page, url, { :remote => remote, :rel => page.next? ? "next" : page.prev? ? "prev" : nil } %>
|
|
</li>
|
|
<% end %>
|