diff --git a/app/models/topic.rb b/app/models/topic.rb index 0d26ca546c8..9a45a328cec 100644 --- a/app/models/topic.rb +++ b/app/models/topic.rb @@ -1001,7 +1001,7 @@ class Topic < ActiveRecord::Base end def self.url(id, slug, post_number = nil) - url = +"#{Discourse.base_url}/t/#{slug}/#{id}/" + url = +"#{Discourse.base_url}/t/#{slug}/#{id}" url << "/#{post_number}" if post_number.to_i > 1 url end