Can I make badge titles link to the badge page?


Title says it all. I’d like to be able to make Badge Titles link back to the page listing all the users that have that badge.

This would be useful for forums who use badges as staff ranks: Users click the Badge Title (“Developer”) and get whisked to a page containing all the Developers in one place.

Is this possible in vanilla Discourse, and if so, how do I set it up?

(Jeff Atwood) #2

Where would this badge link be, exactly? Can you show a mockup?


This guy has the “Developer” badge and has applied it as a user title. Would it be possible to turn that into a link to the /badges/ID/developer page?

(Michael Downey) #4

Interestingly, it’s the same idea as the “co-founder” title for @codinghorror.

Would be great if this was added.


Are there any plans to have this included (perhaps in 1.5)?

(Sam Saffron) #6

We plan to let you filter a badge by name maybe the add this

(Mittineague) #7

Doesn’t this already exist at least to some extent? i.e.


      // User titles
      let title = post.get('user_title');
      if (!Em.isEmpty(title)) {

        title = Handlebars.Utils.escapeExpression(title);
        buffer.push('<span class="user-title">');
        if (Em.isEmpty(primaryGroupName)) {
        } else {
          buffer.push("<a href='/groups/" + post.get('primary_group_name') + "' class='user-group'>" + title + "</a>");

eg. KazWolfe’s “Bug Reporter” is not a link.
Sam Saffron’s “co-founder” is a link.

OK, I know “badge” isn’t exactly the same as “group”, but sometimes it is close