From 43f4998f603a1611a5a6a2ada9a3d15802a544cd Mon Sep 17 00:00:00 2001 From: ArtOfCode- <hello@artofcode.co.uk> Date: Tue, 9 Jun 2020 02:18:14 +0100 Subject: [PATCH] Found a comment bug --- app/controllers/comments_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/comments_controller.rb b/app/controllers/comments_controller.rb index 1ff980842..538c47c52 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 -- GitLab