ililaoban
(ililaoban)
28. Juni 2026 um 02:32
1
Die Release Notes für Discourse 3.0 erwähnen „Scrollposition auf Benutzeraktivitätsseiten wiederherstellen“.
Allerdings wird in der aktuellen Version, wenn man /u/:username/activity/posts öffnet,
nach unten scrollt, einen Beitrag öffnet und dann die Zurück-Schaltfläche des Browsers drückt,
die Seite nach oben zurückgesetzt, anstatt die vorherige Scrollposition wiederherzustellen.
4 „Gefällt mir“
davidb
(David B)
7. August 2026 um 14:21
2
Danke für den Bericht, dies sollte das Problem beheben:
committed 12:36PM - 07 Aug 26 UTC
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
2 „Gefällt mir“
davidb
(David B)
Geschlossen,
12. August 2026 um 14:22
3
Dieses Thema wurde nach 5 Tagen automatisch geschlossen. Neue Antworten sind nicht mehr möglich.