# Link "comments number" to topic page

**URL:** <https://meta.discourse.org/t/link-comments-number-to-topic-page/50153>\
**Category:** Development\
**Created:** [14 Septiembre, 2016 17:06 UTC](https://meta.discourse.org/t/link-comments-number-to-topic-page/50153 "2016-09-14T17:06:06Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [14 Septiembre, 2016 17:33 UTC](https://meta.discourse.org/t/link-comments-number-to-topic-page/50153/2 "2016-09-14T17:33:39Z")

</div>

The “range pop-up” links to the topics first and last posts.  
The topic title on the left links to the “last read post” for logged in members, else the first post of the topic.

I don’t understand exactly what your goal is here.

If you want to get a topics URL I think it would be easiest to get it from the title and remove the “/post#” portion if it’s there.

Or you could have JavaScript fire a click event on the comment number and grab data.

If you want the comment number to be a “pure” link to the topic I think using “preventDefault” should work,

---

_[View the full topic](https://meta.discourse.org/t/link-comments-number-to-topic-page/50153)._
