diff --git a/app/helpers/pagination_helper.rb b/app/helpers/pagination_helper.rb index d058448e6..d863fbdea 100644 --- a/app/helpers/pagination_helper.rb +++ b/app/helpers/pagination_helper.rb @@ -3,11 +3,11 @@ module PaginationHelper html = '
' if records.any? - if params[:page] =~ /[ab]/ && params[:f] != "1" - html << '
  • ' + link_to("< Previous", params.merge(:page => "a#{records[0].id}", :f => nil), :rel => "prev") + '
  • ' + if params[:page] =~ /[ab]/ + html << '
  • ' + link_to("< Previous", params.merge(:page => "a#{records[0].id}"), :rel => "prev") + '
  • ' end - html << '
  • ' + link_to("Next >", params.merge(:page => "b#{records[-1].id}", :f => nil), :rel => "next") + '
  • ' + html << '
  • ' + link_to("Next >", params.merge(:page => "b#{records[-1].id}"), :rel => "next") + '
  • ' end html << "
    " diff --git a/app/views/posts/partials/common/_secondary_links.html.erb b/app/views/posts/partials/common/_secondary_links.html.erb index 8e64d9c76..a997d4126 100644 --- a/app/views/posts/partials/common/_secondary_links.html.erb +++ b/app/views/posts/partials/common/_secondary_links.html.erb @@ -5,7 +5,7 @@
  • <%= link_to "Popular", popular_explore_posts_path %>
  • <%= link_to "Hot", posts_path(:tags => "order:rank") %>
  • <% unless CurrentUser.is_anonymous? %> -
  • <%= link_to "Favorites", favorites_path(:f => "1") %>
  • +
  • <%= link_to "Favorites", favorites_path %>
  • <%= link_to "Subscriptions", posts_path(:tags => "sub:#{CurrentUser.name}") %>
  • <% end %>
  • <%= link_to "Changes", post_versions_path %>