mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +08:00
FIX: include canonical meta tag on category pages
This commit is contained in:
@ -111,6 +111,7 @@ class ListController < ApplicationController
|
||||
end
|
||||
|
||||
def category_default
|
||||
canonical_url "#{Discourse.base_url_no_prefix}#{@category.url}"
|
||||
view_method = @category.default_view
|
||||
view_method = 'latest' unless %w(latest top).include?(view_method)
|
||||
|
||||
|
Reference in New Issue
Block a user