diff --git a/app/controllers/comments_controller.rb b/app/controllers/comments_controller.rb index 1ff980842cf02ce20f341d88320eb1a5d66140e6..538c47c521f2152fbccd57c7ae8e08bfc712db9c 100644 --- a/app/controllers/comments_controller.rb +++ b/app/controllers/comments_controller.rb @@ -88,6 +88,8 @@ class CommentsController < ApplicationController def comment_link(comment) if comment.post.question? question_path(comment.post, anchor: "comment-#{comment.id}") + elsif comment.post.article? + article_path(comment.post, anchor: "comment-#{comment.id}") else question_path(comment.post.parent, anchor: "comment-#{comment.id}") end