mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
FEATURE: add canonical tag to category latest page
This commit is contained in:
parent
01b4fd16cd
commit
a8b927da91
1 changed files with 2 additions and 0 deletions
|
@ -82,6 +82,7 @@ class ListController < ApplicationController
|
|||
end
|
||||
|
||||
define_method("category_#{filter}") do
|
||||
canonical_url "#{Discourse.base_url}#{@category.url}"
|
||||
self.send(filter, { category: @category.id })
|
||||
end
|
||||
|
||||
|
@ -90,6 +91,7 @@ class ListController < ApplicationController
|
|||
end
|
||||
|
||||
define_method("parent_category_category_#{filter}") do
|
||||
canonical_url "#{Discourse.base_url}#{@category.url}"
|
||||
self.send(filter, { category: @category.id })
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue