# First post result link in search within topic causing entire topic to re-render

**URL:** https://meta.discourse.org/t/first-post-result-link-in-search-within-topic-causing-entire-topic-to-re-render/30590
**Category:** Bug
**Created:** [June 29, 2015, 2:25pm UTC](https://meta.discourse.org/t/first-post-result-link-in-search-within-topic-causing-entire-topic-to-re-render/30590 "2015-06-29T14:25:20Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [June 29, 2015, 2:25pm UTC](https://meta.discourse.org/t/first-post-result-link-in-search-within-topic-causing-entire-topic-to-re-render/30590/1 "2015-06-29T14:25:20Z")

</div>

![](https://global.discourse-cdn.com/meta/original/3X/5/1/51c88201ed77b3567e836276310fb2f4f8ce4b8b.gif)

I came across the behavior and identified that this is because [we don’t append the post number](https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/lib/utilities.js#L62) to the first link.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [June 29, 2015, 9:12pm UTC](https://meta.discourse.org/t/first-post-result-link-in-search-within-topic-causing-entire-topic-to-re-render/30590/2 "2015-06-29T21:12:36Z")

</div>

If this is an easy fix maybe you could take it @eviltrout?

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [June 30, 2015, 6:15pm UTC](https://meta.discourse.org/t/first-post-result-link-in-search-within-topic-causing-entire-topic-to-re-render/30590/3 "2015-06-30T18:15:47Z")

</div>

Relatively easy yes:

[https://github.com/discourse/discourse/commit/951d6ac28f15bd0a5ca3fbfddccf0d50792bca84](https://github.com/discourse/discourse/commit/951d6ac28f15bd0a5ca3fbfddccf0d50792bca84)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [June 30, 2015, 9:29pm UTC](https://meta.discourse.org/t/first-post-result-link-in-search-within-topic-causing-entire-topic-to-re-render/30590/4 "2015-06-30T21:29:21Z")

</div>


