mirror of
https://github.com/discourse/discourse.git
synced 2025-09-10 21:01:33 +08:00
FIX: ensures url to full reviewable conversation works on subfolder
This commit is contained in:
parent
c1ca942a77
commit
f4e354afff
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ class Reviewable < ActiveRecord::Base
|
|||
def initialize(meta_topic)
|
||||
@id = meta_topic.id
|
||||
@has_more = false
|
||||
@permalink = "#{Discourse.base_url}#{meta_topic.relative_url}"
|
||||
@permalink = "#{Discourse.base_url_no_prefix}#{meta_topic.relative_url}"
|
||||
@posts = []
|
||||
|
||||
meta_posts = meta_topic.ordered_posts.where(post_type: ::Post.types[:regular]).limit(2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue