# Topic title duplicated in header

**URL:** <https://meta.discourse.org/t/topic-title-duplicated-in-header/58599>\
**Category:** Bug\
**Created:** [7 Marzo 2017, 11:24pm UTC](https://meta.discourse.org/t/topic-title-duplicated-in-header/58599 "2017-03-07T23:24:27Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![nbianca](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nbianca/32/157984_2.png) [@nbianca](https://meta.discourse.org/u/nbianca)\
**Post date:** [16 Marzo 2017, 12:30pm UTC](https://meta.discourse.org/t/topic-title-duplicated-in-header/58599/9 "2017-03-16T12:30:58Z")

</div>

Hello,

I just fixed this and submitted a pull request.

[https://github.com/discourse/discourse/pull/4760](https://github.com/discourse/discourse/pull/4760)

EDIT: To explain a little bit how I tracked the bug:

1. I tried reproducing and found out that it actually reproduces by changing a topic’s title.
2. I found out that there are two events that control the header and if the topic title is shown or not: `header:show-topic` and `header:hide-topic`.
3. Searched where `header:show-topic` is triggered and found a match when a topic is reloaded (which happens when a topic is edited).
4. I changed the code to trigger `header:show-topic` only if the the topic title is not visible (not the one from the header, but the proper one, `#topic-title`).

---

_[View the full topic](https://meta.discourse.org/t/topic-title-duplicated-in-header/58599)._
