From 75969654ee10a50f9e9ed4c81b2df16d361f86ef Mon Sep 17 00:00:00 2001
From: Sebastian Dietrich <dietrich@adlares.com>
Date: Mon, 20 Nov 2017 00:04:38 +0100
Subject: [PATCH] Construct links to comments on changesets using the
 repository name

Note that for comments on changesets the repository name is saved in the database field 'path'.
---
 code_comments/comment.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/code_comments/comment.py b/code_comments/comment.py
index 8850db9..678ba5e 100644
--- a/code_comments/comment.py
+++ b/code_comments/comment.py
@@ -74,7 +74,7 @@ def href(self):
             href = self.req.href.browser(self.path, rev=self.revision,
                                          codecomment=self.id)
         elif self.is_comment_to_changeset:
-            href = self.req.href.changeset(self.revision, codecomment=self.id)
+            href = self.req.href.changeset(self.revision + '/' + self.path, codecomment=self.id)
         elif self.is_comment_to_attachment:
             href = self.req.href('/attachment/ticket/%d/%s'
                                  % (self.attachment_ticket,