From e255915723be871c0e91abf7adae953d5c3f16f5 Mon Sep 17 00:00:00 2001 From: Carl Chenet Date: Tue, 23 May 2017 13:32:28 +0200 Subject: [PATCH] Comment: #url should use story's url, not path --- app/models/comment.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/comment.rb b/app/models/comment.rb index 80b0fda..49c4cd2 100644 --- a/app/models/comment.rb +++ b/app/models/comment.rb @@ -442,7 +442,7 @@ class Comment < ActiveRecord::Base end def url - self.story.comments_path + "#c_#{self.short_id}" + self.story.comments_url + "#c_#{self.short_id}" end def vote_summary_for_user(u)