Revert "FIX: paginated category and topic pages should not have canonical tag"

This reverts commit ecd93f7efb98c41e79077d025c2215c98f1c912d.
This commit is contained in:
Robin Ward
2015-09-29 17:22:28 -04:00
parent 4986314122
commit 0f7aaf5ab1
2 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@ class ListController < ApplicationController
end
define_method("category_#{filter}") do
canonical_url "#{Discourse.base_url}#{@category.url}" unless params[:page].present?
canonical_url "#{Discourse.base_url}#{@category.url}"
self.send(filter, category: @category.id)
end
@ -93,7 +93,7 @@ class ListController < ApplicationController
end
define_method("parent_category_category_#{filter}") do
canonical_url "#{Discourse.base_url}#{@category.url}" unless params[:page].present?
canonical_url "#{Discourse.base_url}#{@category.url}"
self.send(filter, category: @category.id)
end