# Unable to go back to a previous page from account page

**URL:** https://meta.discourse.org/t/unable-to-go-back-to-a-previous-page-from-account-page/120948
**Category:** Bug
**Created:** [20.Июнь.2019 22:54:08 UTC](https://meta.discourse.org/t/unable-to-go-back-to-a-previous-page-from-account-page/120948 "2019-06-20T22:54:08Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![debryc](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/debryc/32/101652_2.png) [@debryc](https://meta.discourse.org/u/debryc)
#### Post date: [20.Июнь.2019 22:54:09 UTC](https://meta.discourse.org/t/unable-to-go-back-to-a-previous-page-from-account-page/120948/1 "2019-06-20T22:54:09Z")

</div>

Hi, the following is happening for me.

1. Click on link to /my/preferences
2. Click on browser’s back button

Nothing happens

Would love this to be fixed!

---

<div class="post-metadata">

### Author: ![tshenry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tshenry/32/119495_2.png) [@tshenry](https://meta.discourse.org/u/tshenry)
#### Post date: [20.Июнь.2019 22:58:39 UTC](https://meta.discourse.org/t/unable-to-go-back-to-a-previous-page-from-account-page/120948/2 "2019-06-20T22:58:39Z")

</div>

I can reproduce this on Meta! Thanks for reporting 🙂

[https://meta.discourse.org/my/preferences](https://meta.discourse.org/my/preferences)

---

<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: [20.Июнь.2019 23:54:13 UTC](https://meta.discourse.org/t/unable-to-go-back-to-a-previous-page-from-account-page/120948/4 "2019-06-20T23:54:13Z")

</div>

Hmm is this a new regression @sam or something we need to backport?

---

<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: [20.Июнь.2019 23:57:13 UTC](https://meta.discourse.org/t/unable-to-go-back-to-a-previous-page-from-account-page/120948/5 "2019-06-20T23:57:13Z")

</div>

Pretty sure there have been issues here for many years, last time I recall @eviltrout investigating this, can you have a look Robin?

---

<div class="post-metadata">

### Author: ![lucasbasquerotto](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lucasbasquerotto/32/133376_2.png) [@lucasbasquerotto](https://meta.discourse.org/u/lucasbasquerotto)
#### Post date: [21.Июнь.2019 01:19:10 UTC](https://meta.discourse.org/t/unable-to-go-back-to-a-previous-page-from-account-page/120948/7 "2019-06-21T01:19:10Z")

</div>

This seems to happen because [Discourse Meta - The Official Support Forum for Discourse](https://meta.discourse.org/my/preferences) actually goes to `https://meta.discourse.org/u/user/preferences/` and then to `https://meta.discourse.org/u/user/preferences/account`.

You can see in the go back history the initial page and the `https://meta.discourse.org/u/user/preferences/` page.

If you go directly to `https://meta.discourse.org/u/user/preferences/account` the error doesn’t happen.

To fix it I think the url `https://meta.discourse.org/u/user/preferences/` shouldn’t go to history when you access (only `https://meta.discourse.org/u/user/preferences/account`).

This doesn’t happen when paste the url the browser.

**In my case:**

The problem happens: [https://meta.discourse.org/u/lucasbasquerotto/preferences/](https://meta.discourse.org/u/lucasbasquerotto/preferences/)

The problem doesn’t happen: [https://meta.discourse.org/u/lucasbasquerotto/preferences/account/](https://meta.discourse.org/u/lucasbasquerotto/preferences/account/)

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [21.Июнь.2019 18:43:28 UTC](https://meta.discourse.org/t/unable-to-go-back-to-a-previous-page-from-account-page/120948/8 "2019-06-21T18:43:28Z")

</div>

This is another manifestation of a bug that has long plagued us. I believe this fix should last for a while, as it worked in all the cases I tried:

[https://github.com/discourse/discourse/commit/02f6db4e59e03f49739be7e228641613dab0ae26](https://github.com/discourse/discourse/commit/02f6db4e59e03f49739be7e228641613dab0ae26)

(the commit message has more detail.)

> [@codinghorror](#):
>
> Hmm is this a new regression

I suspect this has been here since our last Ember upgrade at least. Probably longer.

---

<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: [21.Июнь.2019 23:49:46 UTC](https://meta.discourse.org/t/unable-to-go-back-to-a-previous-page-from-account-page/120948/10 "2019-06-21T23:49:46Z")

</div>


