diff --git a/app/controllers/topics_controller.rb b/app/controllers/topics_controller.rb index 8e4f1c12cd8..523813c108e 100644 --- a/app/controllers/topics_controller.rb +++ b/app/controllers/topics_controller.rb @@ -81,7 +81,7 @@ class TopicsController < ApplicationController perform_show_response - canonical_url absolute_without_cdn(@topic_view.canonical_path) + canonical_url absolute_without_cdn("#{Discourse.base_uri}#{@topic_view.canonical_path}") rescue Discourse::InvalidAccess => ex if current_user