FIX: canonical link tag when using relative_url_root

This commit is contained in:
Neil Lalonde 2015-04-27 13:34:22 -04:00
parent de42c627c5
commit cce8693354

View File

@ -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