FIX: Incorrect subfolder urls when embedding

This commit is contained in:
Robin Ward
2016-01-12 12:38:49 -05:00
parent e2744fc19f
commit 1f8586168b
2 changed files with 9 additions and 5 deletions
+4
View File
@@ -359,6 +359,10 @@ class Post < ActiveRecord::Base
publish_change_to_clients!(:acted)
end
def full_url
"#{Discourse.base_url}#{url}"
end
def url
if topic
Post.url(topic.slug, topic.id, post_number)