# Regresión: /u/:username/activity pierde la posición de desplazamiento al usar Atrás en el navegador

**URL:** https://meta.discourse.org/t/regression-u-username-activity-loses-scroll-position-after-browser-back/406292
**Category:** Bug
**Created:** [28 Junio, 2026 02:32 UTC](https://meta.discourse.org/t/regression-u-username-activity-loses-scroll-position-after-browser-back/406292 "2026-06-28T02:32:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ililaoban](https://avatars.discourse-cdn.com/v4/letter/i/cdc98d/32.png) [@ililaoban](https://meta.discourse.org/u/ililaoban)
#### Post date: [28 Junio, 2026 02:32 UTC](https://meta.discourse.org/t/regression-u-username-activity-loses-scroll-position-after-browser-back/406292/1 "2026-06-28T02:32:36Z")

</div>

Las notas de la versión de Discourse 3.0 mencionan «Restaurar el desplazamiento en las páginas de actividad del usuario».  
Sin embargo, en la versión actual, al abrir /u/:username/activity/posts,  
desplazarse hacia abajo, abrir una publicación y presionar el botón Atrás del navegador,  
la página vuelve al inicio en lugar de restaurar la posición de desplazamiento anterior.

---

<div class="post-metadata">

### Author: ![davidb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidb/32/554671_2.png) [@davidb](https://meta.discourse.org/u/davidb)
#### Post date: [7 Agosto, 2026 14:21 UTC](https://meta.discourse.org/t/regression-u-username-activity-loses-scroll-position-after-browser-back/406292/2 "2026-08-07T14:21:24Z")

</div>

Gracias por reportarlo, esto debería solucionar el problema:

> <https://github.com/discourse/discourse/commit/b5961484c99bd554fa2532d0105da369d0f4b887>
>
> Scrolling a user activity stream far enough to trigger infinite scroll,
> opening …a topic, then pressing back would land the user higher up the
> page than where they left off.
> 
> The scroll position was being restored correctly, but the stream was
> refetched from scratch, so the page only held its first page of items
> and was too short to scroll back to the saved offset — the browser
> clamped it.
> 
> On a back/forward navigation we now reuse the stream we left behind,
> including everything infinite scroll appended, so the page is the same
> height it was and the restored position lands where the user was
> reading. The stream is stored per history entry via the historyStore
> service, so ordinary forward navigation still loads a fresh stream.
> 
> Meta bug report:
> https://meta.discourse.org/t/regression-u-username-activity-loses-scroll-position-after-browser-back/406292

---

<div class="post-metadata">

### Author: ![davidb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidb/32/554671_2.png) [@davidb](https://meta.discourse.org/u/davidb)
#### Post date: [12 Agosto, 2026 14:22 UTC](https://meta.discourse.org/t/regression-u-username-activity-loses-scroll-position-after-browser-back/406292/3 "2026-08-12T14:22:49Z")

</div>

Este tema se cerró automáticamente después de 5 días. Ya no se permiten nuevas respuestas.
