# Private message search terms stay highlighted

**URL:** https://meta.discourse.org/t/private-message-search-terms-stay-highlighted/70000
**Category:** Bug
**Created:** [2017年九月13日 19:43 UTC](https://meta.discourse.org/t/private-message-search-terms-stay-highlighted/70000 "2017-09-13T19:43:28Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [2017年九月13日 19:43 UTC](https://meta.discourse.org/t/private-message-search-terms-stay-highlighted/70000/1 "2017-09-13T19:43:28Z")

</div>

After performing a successful search for terms in a private message, the search terms stay highlighted after returning to the forum. This can only be dismissed by performing another search, or refreshing the page.

 ![21](https://global.discourse-cdn.com/meta/original/3X/1/9/19f3545072c111144dd7e31ab96357b484f13dc0.png)

 ![10](https://global.discourse-cdn.com/meta/original/3X/b/0/b0e507e8e8b91fa201fef4c7e23adff8fc4e6900.png)

---

<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: [2017年九月13日 19:47 UTC](https://meta.discourse.org/t/private-message-search-terms-stay-highlighted/70000/2 "2017-09-13T19:47:10Z")

</div>

Can you repro this @jomaxro?

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [2017年九月13日 19:53 UTC](https://meta.discourse.org/t/private-message-search-terms-stay-highlighted/70000/4 "2017-09-13T19:53:53Z")

</div>

Yes, I can repro.

Steps:

1. Go to Private Messages `/my/messages`
2. Search for something (I searched “testing the”).
3. Click a result (not necessary)
4. Navigate somewhere else on the site - I clicked the logo then opened a topic.
5. Notice search terms from PM are still highlighted.
6. Click search icon and see that search terms are still there.

---

<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: [2018年四月16日 23:04 UTC](https://meta.discourse.org/t/private-message-search-terms-stay-highlighted/70000/5 "2018-04-16T23:04:05Z")

</div>

I run into this once a week @sam, low pri but annoying.

---

<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: [2018年六月12日 22:02 UTC](https://meta.discourse.org/t/private-message-search-terms-stay-highlighted/70000/7 "2018-06-12T22:02:50Z")

</div>

I believe @sam fixed this?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2018年六月12日 22:03 UTC](https://meta.discourse.org/t/private-message-search-terms-stay-highlighted/70000/8 "2018-06-12T22:03:35Z")

</div>

Not me, I am pretty sure @tgxworld did

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2018年六月12日 22:03 UTC](https://meta.discourse.org/t/private-message-search-terms-stay-highlighted/70000/9 "2018-06-12T22:03:40Z")

</div>


