]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/actions/user.py
show link that leads to the badge page, not list of all badges
[osqa.git] / forum / actions / user.py
index 94c9f1704fba8bc6e4fbf361692da4c15cd1def7..d9c6be920e9411fc592666dd08e25db1ff1dbe38 100644 (file)
@@ -164,10 +164,10 @@ class AwardAction(ActionProxy):
         self.user.save()
 
         self.user.message_set.create(message=_(
-                """Congratulations, you have received a badge '%(badge_name)s'. <a href="%(badges_url)s">Find out who has it, too</a>."""
+                """Congratulations, you have received a badge '%(badge_name)s'. <a href="%(badge_url)s">Find out who has it, too</a>."""
         ) % dict(
             badge_name=award.badge.name,
-            badges_url=reverse("badges")))
+            badge_url=award.badge.get_absolute_url()))
 
     def cancel_action(self):
         award = self.award