Skip to content
Snippets Groups Projects
Commit 43f4998f authored by ArtOfCode-'s avatar ArtOfCode-
Browse files

Found a comment bug

parent 1373026b
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment