# "Which topic do you want to reply to" popup gets confused

**URL:** https://meta.discourse.org/t/which-topic-do-you-want-to-reply-to-popup-gets-confused/75056
**Category:** Bug
**Created:** [30 november 2017 om 02:24 UTC](https://meta.discourse.org/t/which-topic-do-you-want-to-reply-to-popup-gets-confused/75056 "2017-11-30T02:24:10Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![barryvan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barryvan/32/82635_2.png) [@barryvan](https://meta.discourse.org/u/barryvan)
#### Post date: [30 november 2017 om 02:24 UTC](https://meta.discourse.org/t/which-topic-do-you-want-to-reply-to-popup-gets-confused/75056/1 "2017-11-30T02:24:10Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/3X/4/2/42a7570f48ef5793787c2eee6e24a689ea4a0c0e.png)

Steps I took to make this happen:

1. Start replying to a topic.
2. Go home.
3. Switch to the “categories” view.
4. Load a category.
5. Load a topic in that category.
6. Use the back button twice to return to “categories”.
7. Hit the “reply” button.

It looks like going into a different topic sets a flag indicating that that might be the topic to reply to, but this flag isn’t unset when _leaving_ the topic.

---

<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: [30 november 2017 om 02:49 UTC](https://meta.discourse.org/t/which-topic-do-you-want-to-reply-to-popup-gets-confused/75056/2 "2017-11-30T02:49:11Z")

</div>

And both of the topics were in different categories?

---

<div class="post-metadata">

### Author: ![barryvan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barryvan/32/82635_2.png) [@barryvan](https://meta.discourse.org/u/barryvan)
#### Post date: [30 november 2017 om 02:52 UTC](https://meta.discourse.org/t/which-topic-do-you-want-to-reply-to-popup-gets-confused/75056/3 "2017-11-30T02:52:58Z")

</div>

Yes, both topics were in different categories.

---

<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: [30 november 2017 om 04:16 UTC](https://meta.discourse.org/t/which-topic-do-you-want-to-reply-to-popup-gets-confused/75056/4 "2017-11-30T04:16:44Z")

</div>

OK easy repro,

- start typing reply here.
- Hit home
- Visit different topic
- Hit back
- Hit reply

---

<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: [9 juli 2018 om 07:31 UTC](https://meta.discourse.org/t/which-topic-do-you-want-to-reply-to-popup-gets-confused/75056/6 "2018-07-09T07:31:29Z")

</div>

Could this be an easy starter bugfix @sam?

---

<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: [9 juli 2018 om 07:43 UTC](https://meta.discourse.org/t/which-topic-do-you-want-to-reply-to-popup-gets-confused/75056/7 "2018-07-09T07:43:35Z")

</div>

Unfortunately not, this logic is in a fairly complex spot with high chance of regressions.

I can have a look when I free up.

---

<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: [17 juli 2018 om 07:25 UTC](https://meta.discourse.org/t/which-topic-do-you-want-to-reply-to-popup-gets-confused/75056/9 "2018-07-17T07:25:48Z")

</div>

Well… better late than never… this is now fixed 🏎

[https://github.com/discourse/discourse/commit/9f1e8d4f58243ef8e18e32fc82f3e0bd74d833f2](https://github.com/discourse/discourse/commit/9f1e8d4f58243ef8e18e32fc82f3e0bd74d833f2)

---

<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: [21 juli 2018 om 08:00 UTC](https://meta.discourse.org/t/which-topic-do-you-want-to-reply-to-popup-gets-confused/75056/10 "2018-07-21T08:00:00Z")

</div>

This topic was automatically closed after 4 days. New replies are no longer allowed.
