# Links naar verborgen berichten wissen filters niet

**URL:** https://meta.discourse.org/t/links-to-hidden-messages-dont-clear-filters/184491
**Category:** Bug
**Created:** [26 maart 2021 om 12:10 UTC](https://meta.discourse.org/t/links-to-hidden-messages-dont-clear-filters/184491 "2021-03-26T12:10:35Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)
#### Post date: [26 maart 2021 om 12:10 UTC](https://meta.discourse.org/t/links-to-hidden-messages-dont-clear-filters/184491/1 "2021-03-26T12:10:35Z")

</div>

I don’t know if this is one bug or two, but here are the steps to reproduce them. I’ve had to do it here instead of in [try.discourse.org](http://try.discourse.org) because filtered replies are not enabled there.

1. Go to [post #6 in this thread](https://meta.discourse.org/t/edits-not-being-stored-in-user-actions-table/145025/6), scroll to the bottom and click to see its 6 replies:

2. Scroll to the last post (number #25, which is a direct reply of #6) and click its link to post number #24:  

Expected behavior: post #24 becomes visible (filters might or might not get removed)

Actual behavior: the page scrolls up and down, but #24 never appears

On to bug #2:

1. Click on View 6 hidden replies

2. Scroll down until you see post #24 and click its link to post #8

Expected behavior: [#8 appears](https://meta.discourse.org/t/edits-not-being-stored-in-user-actions-table/145025/8)

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

Actual behavior: [#7 appears](https://meta.discourse.org/t/edits-not-being-stored-in-user-actions-table/145025/7)

 ![image](https://global.discourse-cdn.com/meta/original/3X/b/1/b1bfac7e17618041fcabaee50abd8d3f26ff1460.png)

---

<div class="post-metadata">

### Author: ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)
#### Post date: [30 maart 2021 om 11:14 UTC](https://meta.discourse.org/t/links-to-hidden-messages-dont-clear-filters/184491/2 "2021-03-30T11:14:49Z")

</div>

@pmusaraj If you have time, could you confirm if this is indeed a bug (or two) or if it’s the intended behavior? Maybe I’m misinterpreting something.

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [30 maart 2021 om 13:18 UTC](https://meta.discourse.org/t/links-to-hidden-messages-dont-clear-filters/184491/3 "2021-03-30T13:18:45Z")

</div>

Yes, this looks one and the same bug. It’s a considerable edge case, it is quite rare to link to replies like in the example, but I will add this to my todo list.

---

<div class="post-metadata">

### Author: ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)
#### Post date: [30 maart 2021 om 13:32 UTC](https://meta.discourse.org/t/links-to-hidden-messages-dont-clear-filters/184491/5 "2021-03-30T13:32:21Z")

</div>

A more common case is when the link is actually a @mention notification

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [30 maart 2021 om 13:33 UTC](https://meta.discourse.org/t/links-to-hidden-messages-dont-clear-filters/184491/6 "2021-03-30T13:33:40Z")

</div>

Hmm, I’m not following, how would a mention link to a reply in the same post stream?

---

<div class="post-metadata">

### Author: ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)
#### Post date: [30 maart 2021 om 13:35 UTC](https://meta.discourse.org/t/links-to-hidden-messages-dont-clear-filters/184491/7 "2021-03-30T13:35:17Z")

</div>

I used a link to make the example reproducible, but this was actually reported by a user who was seeing a filtered reply and received a mention on the same topic. When they clicked on the notification, they got the behavior I reported

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [30 maart 2021 om 19:15 UTC](https://meta.discourse.org/t/links-to-hidden-messages-dont-clear-filters/184491/8 "2021-03-30T19:15:04Z")

</div>

This is fixed now @Nacho_Caballero via [DEV: Clear filters when navigating to a post (#12557) · discourse/discourse@524890c · GitHub](https://github.com/discourse/discourse/commit/524890c5e437b22c3505b7fbbc3df8acdbc431db)

---

<div class="post-metadata">

### Author: ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)
#### Post date: [31 maart 2021 om 06:36 UTC](https://meta.discourse.org/t/links-to-hidden-messages-dont-clear-filters/184491/9 "2021-03-31T06:36:30Z")

</div>

That works perfectly! Thanks, Penar.

That took surprisingly little code to fix, but I don’t think I’d been able to figure it out on my own. 😅

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [31 maart 2021 om 12:00 UTC](https://meta.discourse.org/t/links-to-hidden-messages-dont-clear-filters/184491/10 "2021-03-31T12:00:58Z")

</div>

This topic was automatically closed after 16 hours. New replies are no longer allowed.
