diff --git a/lib/pretty_text/helpers.rb b/lib/pretty_text/helpers.rb index c79814d6098..5f200bc04ac 100644 --- a/lib/pretty_text/helpers.rb +++ b/lib/pretty_text/helpers.rb @@ -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 diff --git a/spec/lib/pretty_text_spec.rb b/spec/lib/pretty_text_spec.rb index 1583ef5fecf..24bd6c79b0d 100644 --- a/spec/lib/pretty_text_spec.rb +++ b/spec/lib/pretty_text_spec.rb @@ -220,7 +220,7 @@ RSpec.describe PrettyText do