# Can't open History popup after using browser back button

**URL:** https://meta.discourse.org/t/cant-open-history-popup-after-using-browser-back-button/43898
**Category:** Bug
**Created:** [2016年五月8日 22:07 UTC](https://meta.discourse.org/t/cant-open-history-popup-after-using-browser-back-button/43898 "2016-05-08T22:07:50Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [2016年五月8日 22:07 UTC](https://meta.discourse.org/t/cant-open-history-popup-after-using-browser-back-button/43898/1 "2016-05-08T22:07:50Z")

</div>

I noticed this a long time ago, but I couldn’t reproduce it up until now…

**Steps to reproduce:**

1. Go to a post that was edited ([example](https://meta.discourse.org/t/importing-from-phpbb3/30810))
2. Click on the pencil icon and open the history popup
3. Use the browser’s back button (don’t close the popup before you do this)
4. Go to the same or another post that has a history and click on the pencil icon

**Expected result:**  
The history popup should open.

**Actual result:**  
The history popup doesn’t show up, but there’s no error in the JavaScript console.

---

<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: [2016年五月9日 03:10 UTC](https://meta.discourse.org/t/cant-open-history-popup-after-using-browser-back-button/43898/2 "2016-05-09T03:10:13Z")

</div>

Sure can you repro and fix @techapj?

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [2016年五月9日 17:30 UTC](https://meta.discourse.org/t/cant-open-history-popup-after-using-browser-back-button/43898/3 "2016-05-09T17:30:40Z")

</div>

I sent a PR to fix this issue:

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

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [2016年五月12日 15:52 UTC](https://meta.discourse.org/t/cant-open-history-popup-after-using-browser-back-button/43898/4 "2016-05-12T15:52:57Z")

</div>


