Double number of clicks notification badge


(Dan Dascalescu) #1

What does it mean when a link has two “number of clicks” badges, such as in this post? They both have the same tooltip (“N clicks”) and link to the same post.


(Régis Hanol) #3

I actually think it’s a bug.

It happens when you have two links which starts with the same substring.

EDIT: here’s what we have in the JSON

link_counts: [
  {
    url: "https://meta.discourse.org/t/cant-install-docker-on-linode-aufs-tools-not-found/18416",
    clicks: 3
  },
  {
    url: "https://meta.discourse.org/t/cant-install-docker-on-linode-aufs-tools-not-found/18416/99999999",
   clicks: 0
  }
]

(Dan Dascalescu) #4

Seen again in this post.


(Régis Hanol) #5

Just pushed a fix :dancers:


(Régis Hanol) #6