# Click counter missing for some internal links

**URL:** https://meta.discourse.org/t/click-counter-missing-for-some-internal-links/98673
**Category:** Bug
**Tags:** click-counter
**Created:** [October 3, 2018, 9:58pm UTC](https://meta.discourse.org/t/click-counter-missing-for-some-internal-links/98673 "2018-10-03T21:58:48Z")
**Posts on this page:** 1
**Showing post:** 12

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [October 19, 2018, 6:48pm UTC](https://meta.discourse.org/t/click-counter-missing-for-some-internal-links/98673/12 "2018-10-19T18:48:36Z")

</div>

**UPDATE** : I’ve found something here

I noticed the URL generated in the ajax call with path /click/track uses an out of date slug which was changed during the life of the target Topic - could that have affected it? I know most code _should_ rely on the id only, but is this an isolated case where it requires the slug to remain the same as when the link was created in order to work?

**BOOM, that’s the problem!**

Update the old slug in the source link to the new target slug and the counter appears.

The counters fail because the slug has changed - **I think this should be fixed if possible as this should not be a dependency?**

**WORKAROUND:** Update the source link to the new target slug and the counter starts working! @tophee @sam

Unfortunately this is a lot of manual work and you need to identify each mismatching link. A fix to remove this dependency to rely only on the id would be lovely 🙂

Would be also good to check:

- if the bug affects the ‘arrived from’ counters in the post footers.
- if adding a mid post location with a heading at the end of the url breaks the counter code e.g. #heading–myheading because I’m not seeing any counters on those types of links …

---

_[View the full topic](https://meta.discourse.org/t/click-counter-missing-for-some-internal-links/98673)._
