FIX: ensures url to full reviewable conversation works on subfolder

FIX: ensures url to full reviewable conversation works on subfolder

diff --git a/lib/reviewable/conversation.rb b/lib/reviewable/conversation.rb
index 54e6b54..4fc44c0 100644
--- a/lib/reviewable/conversation.rb
+++ b/lib/reviewable/conversation.rb
@@ -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)

GitHub sha: f4e354af

1 Like

This definitely needs a test since subfolder support tends to break is some weird way.