diff options
-rw-r--r-- | models/issue_xref.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/models/issue_xref.go b/models/issue_xref.go index c4f0080edd..3c9e67c3f8 100644 --- a/models/issue_xref.go +++ b/models/issue_xref.go @@ -295,8 +295,9 @@ func CommentTypeIsRef(t CommentType) bool { // RefCommentHTMLURL returns the HTML URL for the comment that created this reference func (comment *Comment) RefCommentHTMLURL() string { + // Edge case for when the reference is inside the title or the description of the referring issue if comment.RefCommentID == 0 { - return "" + return comment.RefIssueHTMLURL() } if err := comment.LoadRefComment(); err != nil { // Silently dropping errors :unamused: log.Error("LoadRefComment(%d): %v", comment.RefCommentID, err) |