mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 00:32:52 +08:00
FIX: quoted private topic url respects subfolder install (#25643)
Fixes an issue where private topics that are quoted have an incorrectly formatted url when using a subfolder install. This update returns a relative url that includes the base_path rather than a combination of base_url + base_path.
This commit is contained in:
@ -92,7 +92,7 @@ module PrettyText
|
||||
if topic && Guardian.new.can_see?(topic)
|
||||
{ title: Rack::Utils.escape_html(topic.title), href: topic.url }
|
||||
elsif topic
|
||||
{ title: I18n.t("on_another_topic"), href: Discourse.base_url + topic.slugless_url }
|
||||
{ title: I18n.t("on_another_topic"), href: topic.slugless_url }
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user