mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 04:08:41 +08:00
Revert "FIX: paginated category and topic pages should not have canonical tag"
This reverts commit ecd93f7efb98c41e79077d025c2215c98f1c912d.
This commit is contained in:
@ -83,7 +83,7 @@ class TopicsController < ApplicationController
|
||||
response.headers['X-Robots-Tag'] = 'noindex'
|
||||
end
|
||||
|
||||
canonical_url UrlHelper.absolute_without_cdn("#{Discourse.base_uri}#{@topic_view.canonical_path}") unless params[:page].present?
|
||||
canonical_url UrlHelper.absolute_without_cdn("#{Discourse.base_uri}#{@topic_view.canonical_path}")
|
||||
|
||||
perform_show_response
|
||||
|
||||
|
Reference in New Issue
Block a user