mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
FIX: canonical urls for category and topic pages was wrong when deployed to subfolder
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}")
|
||||
canonical_url UrlHelper.absolute_without_cdn(@topic_view.canonical_path)
|
||||
|
||||
perform_show_response
|
||||
|
||||
|
Reference in New Issue
Block a user