From cce8693354de9d2825cb368d899e9bcd5dc8edd8 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Mon, 27 Apr 2015 13:34:22 -0400 Subject: [PATCH] FIX: canonical link tag when using relative_url_root --- app/controllers/topics_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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