# The read post position changed in topic?

**URL:** https://meta.discourse.org/t/the-read-post-position-changed-in-topic/241978
**Category:** Bug
**Created:** [October 15, 2022, 2:17pm UTC](https://meta.discourse.org/t/the-read-post-position-changed-in-topic/241978 "2022-10-15T14:17:39Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [October 15, 2022, 2:17pm UTC](https://meta.discourse.org/t/the-read-post-position-changed-in-topic/241978/1 "2022-10-15T14:17:39Z")

</div>

Hello,

I noticed when I go to a topic where I earlier read a few post than it will not continue from that post where I stoped reading.

Now it seems to the read position is the onscreen last post instead of the onscreen first post.

Demo: On the video I scroll to the 14th post and go back to topic list. Than I open it again and it goes to the 18th post instead of 15th.

Yeah something changed because it should also scroll to the last seen line. I think I move it to #Contribute > Bug.

Edit: It seems to it jumps to the last seen line when the post highlight animation ends.  
This is because the last seen line is only shows up after the highlight animation (or post loads).

Thank you 🙂

---

<div class="post-metadata">

### Author: ![robotnjik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/robotnjik/32/120095_2.png) [@robotnjik](https://meta.discourse.org/u/robotnjik)
#### Post date: [October 17, 2022, 2:52pm UTC](https://meta.discourse.org/t/the-read-post-position-changed-in-topic/241978/2 "2022-10-17T14:52:06Z")

</div>

Yes, several members of my community and I noticed this. It started to happen after we enabled sidebar.

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [October 20, 2022, 8:14am UTC](https://meta.discourse.org/t/the-read-post-position-changed-in-topic/241978/3 "2022-10-20T08:14:12Z")

</div>

Hello,

Sorry for bumping but is there any update with this? 🙂 I noticed also sometimes when I click a notification on menu than it jumps a few posts above than where the notification links.

Thanks 🙂

---

<div class="post-metadata">

### Author: ![robotnjik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/robotnjik/32/120095_2.png) [@robotnjik](https://meta.discourse.org/u/robotnjik)
#### Post date: [October 20, 2022, 2:34pm UTC](https://meta.discourse.org/t/the-read-post-position-changed-in-topic/241978/4 "2022-10-20T14:34:09Z")

</div>

This is happening in two of my instances. Maybe is related to the sidebar? Before activating it, all worked fine, now users are reporting this issue.

---

<div class="post-metadata">

### Author: ![stuwest](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stuwest/32/192400_2.png) [@stuwest](https://meta.discourse.org/u/stuwest)
#### Post date: [October 20, 2022, 2:58pm UTC](https://meta.discourse.org/t/the-read-post-position-changed-in-topic/241978/5 "2022-10-20T14:58:25Z")

</div>

I’m also getting reports of this from my users in the past couple of days, right after we enabled the sidebar.

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [October 20, 2022, 3:30pm UTC](https://meta.discourse.org/t/the-read-post-position-changed-in-topic/241978/7 "2022-10-20T15:30:29Z")

</div>

Nope, I think not the sidebar. Maybe partly cause this commit [DEV: Asyncify loadTopicView (#18585) · discourse/discourse@2c5e8f1 · GitHub](https://github.com/discourse/discourse/commit/2c5e8f17635fd4e6d280a3dc794335711e19970e) ? Because it seems to topic elements posts, last seen line etc… load a little delay and I think this is why it jumps to a random posts sometimes. But I am not sure 🙂

---

<div class="post-metadata">

### Author: ![robotnjik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/robotnjik/32/120095_2.png) [@robotnjik](https://meta.discourse.org/u/robotnjik)
#### Post date: [October 20, 2022, 3:34pm UTC](https://meta.discourse.org/t/the-read-post-position-changed-in-topic/241978/8 "2022-10-20T15:34:03Z")

</div>

That update was six days ago, matching the first reports from our users and when I noticed too.

Do you have a sidebar activated in your instance?

---

<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: [October 20, 2022, 11:11pm UTC](https://meta.discourse.org/t/the-read-post-position-changed-in-topic/241978/10 "2022-10-20T23:11:51Z")

</div>

FYI I have notified all the relevant engineers about this issue and added this topic to our internal tracking list, we have this prioritized.

---

<div class="post-metadata">

### Author: ![cvx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cvx/32/152146_2.png) [@cvx](https://meta.discourse.org/u/cvx)
#### Post date: [October 26, 2022, 11:45am UTC](https://meta.discourse.org/t/the-read-post-position-changed-in-topic/241978/13 "2022-10-26T11:45:05Z")

</div>

> [@Don](#):
>
> I noticed when I go to a topic where I earlier read a few post than it will not continue from that post where I stoped reading.
> 
> Now it seems to the read position is the onscreen last post instead of the onscreen first post.
> 
> Demo: On the video I scroll to the 14th post and go back to topic list. Than I open it again and it goes to the 18th post instead of 15th.

I believe that’s how it’s supposed to work? Clicking on a topic in a list takes you to the first unread post\*, not your previous position. You can go back to the spot you left using browser’s back/forward navigation.

(\* – there are settings, that slightly change that - i.e. `navigate_to_first_post_after_read` category setting that, if enabled, navigates you to the first post if you don’t have any unread posts left in a topic)

> [@Don](#):
>
> Yeah something changed because it should also scroll to the last seen line.

Yup, scroll to the “last visit” marker is a bit buggy. It won’t work if there are any small-posts (like “X months later”) or deleted posts right after it. I’m working on a fix.

> [@Don](#):
>
> I noticed also sometimes when I click a notification on menu than it jumps a few posts above than where the notification links.

This is bug is tracked in [Discourse jumps back 20 posts in post history when navigating to new topic](https://meta.discourse.org/t/discourse-jumps-back-20-posts-in-post-history-when-navigating-to-new-topic/242739).

It might have been fixed in [FIX: Correctly reset `controllerReady` prop by cvx · Pull Request #18727 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/18727)

---

<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: [November 1, 2022, 9:50pm UTC](https://meta.discourse.org/t/the-read-post-position-changed-in-topic/241978/14 "2022-11-01T21:50:24Z")

</div>

@Don are you still able to repro the issue?

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [November 2, 2022, 5:16am UTC](https://meta.discourse.org/t/the-read-post-position-changed-in-topic/241978/15 "2022-11-02T05:16:58Z")

</div>

Hello Sam,

No, after revert the commit it is good for me.

* * *

The first thing I mentioned is probably not an issue 🔽

> [@Don](#):
>
> Now it seems to the read position is the onscreen last post instead of the onscreen first post.
> 
> Demo: On the video I scroll to the 14th post and go back to topic list. Than I open it again and it goes to the 18th post instead of 15th.
> 
> [https://global.discourse-cdn.com/meta/original/4X/d/5/3/d5345ced02ca4309e355f32a44dc6b16f4d133bc.mov](https://global.discourse-cdn.com/meta/original/4X/d/5/3/d5345ced02ca4309e355f32a44dc6b16f4d133bc.mov)

As Jarek said this is how it works.

> [@cvx](#):
>
> I believe that’s how it’s supposed to work? Clicking on a topic in a list takes you to the first unread post\*, not your previous position

I think I mixed up this with the logged out topic view? When I logged out It goes to the next post rather than the last onscreen post.

---

<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: [November 2, 2022, 5:23am UTC](https://meta.discourse.org/t/the-read-post-position-changed-in-topic/241978/16 "2022-11-02T05:23:02Z")

</div>


