mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: crawler view of paginated content should have link elements in head for next and previous pages
This commit is contained in:
@@ -49,6 +49,13 @@
|
||||
<% end %>
|
||||
<span itemprop='url'><b><a href='<%= @list.more_topics_url %>' rel='next' itemprop='name'><%= t 'next_page' %></a></b></span>
|
||||
</div>
|
||||
|
||||
<% content_for :head do %>
|
||||
<% if params[:page].to_i > 0 %>
|
||||
<link rel="prev" href="<%= @list.prev_topics_url -%>">
|
||||
<% end %>
|
||||
<link rel="next" href="<%= @list.more_topics_url -%>">
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<%- end %>
|
||||
|
||||
Reference in New Issue
Block a user