mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 01:47:22 +08:00
FIX: canonical link tag when using relative_url_root
This commit is contained in:
parent
de42c627c5
commit
cce8693354
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user