Merge pull request #3235 from techAPJ/patch-1

FEATURE: add canonical tag to category latest page
This commit is contained in:
Robin Ward 2015-02-25 11:04:19 -05:00
commit 3de5b1799e
1 changed files with 2 additions and 0 deletions

View File

@ -82,6 +82,7 @@ class ListController < ApplicationController
end end
define_method("category_#{filter}") do define_method("category_#{filter}") do
canonical_url "#{Discourse.base_url}#{@category.url}"
self.send(filter, { category: @category.id }) self.send(filter, { category: @category.id })
end end
@ -90,6 +91,7 @@ class ListController < ApplicationController
end end
define_method("parent_category_category_#{filter}") do define_method("parent_category_category_#{filter}") do
canonical_url "#{Discourse.base_url}#{@category.url}"
self.send(filter, { category: @category.id }) self.send(filter, { category: @category.id })
end end