mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 17:33:38 +08:00
FIX: canonical link tag when using relative_url_root
This commit is contained in:
@ -81,7 +81,7 @@ class TopicsController < ApplicationController
|
|||||||
|
|
||||||
perform_show_response
|
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
|
rescue Discourse::InvalidAccess => ex
|
||||||
|
|
||||||
if current_user
|
if current_user
|
||||||
|
Reference in New Issue
Block a user