mirror of
https://github.com/discourse/discourse.git
synced 2026-08-11 05:25:16 -05:00
FIX: Incorrect subfolder urls when embedding
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user