mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
In web crawler mode, don't show a previous link on a page with 0 results. Google will index those pages and keep following the prev links.
This commit is contained in:
parent
fca6738212
commit
cf7a3e74ee
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<% if @topic_view.prev_page %>
|
<% if @topic_view.posts.length > 0 && @topic_view.prev_page %>
|
||||||
<%= link_to t(:prev_page), @topic_view.prev_page_path, rel: 'prev' %>
|
<%= link_to t(:prev_page), @topic_view.prev_page_path, rel: 'prev' %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if @topic_view.next_page %>
|
<% if @topic_view.next_page %>
|
||||||
|
|
Loading…
Reference in a new issue