# El historial del botón Atrás no funciona correctamente

**URL:** <https://meta.discourse.org/t/back-button-history-not-properly-working/122183>\
**Category:** Bug\
**Created:** [5 Julio, 2019 15:41 UTC](https://meta.discourse.org/t/back-button-history-not-properly-working/122183 "2019-07-05T15:41:03Z")\
**Posts on this page:** 1\
**Showing post:** 10

<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:** [5 Julio, 2019 19:55 UTC](https://meta.discourse.org/t/back-button-history-not-properly-working/122183/10 "2019-07-05T19:55:45Z")

</div>

Esto debería funcionar:

> <https://github.com/discourse/discourse/commit/de6edf9e4e5675db0e4bf13000402ec60ae01cd3>
>
> See related topic:
> https://meta.discourse.org/t/back-button-history-not-properly…-working/122183
> 
> The issue here is the transition was not completing properly which meant
> if you backed out of a topic quickly and entered a new one, hitting back
> in the second topic would sometimes take you to the previous one instead
> of back to the topic list.

Me sorprendió descubrir que esto no tenía que ver con los cambios recientes en el historial, sino que fue causado por un nuevo `willTransition` añadido en un [commit](https://github.com/discourse/discourse/commit/71bf9ec1b23a38396d92caaa40f2d43ef6f2b548) recientemente fusionado.

Supongo que siempre debemos recordar `return true` en los métodos `willTransition`.

---

_[View the full topic](https://meta.discourse.org/t/back-button-history-not-properly-working/122183)._
