A bug has been reported where using the full-page search feature confuses the record of the latest post read in a topic. yamikuronue describes the issue, which occurs after visiting full-page search results and then returning to the topic list. The topic URL points to an older post instead of the last read position or the last post in the thread.
yamikuronue and sam discuss possible workarounds, including reloading the page or posting in the thread, but these have limitations. sam implements a fix, which appears to resolve the issue for some users, including tgxworld.
However, yamikuronue reports that the issue still occurs, providing detailed reproduction steps. sam simplifies the reproduction steps, and eviltrout identifies the root cause: the search results using latest as the preload store key, causing the cached version to load. eviltrout implements a fix, which should resolve the issue.
This is affecting me heavily on WTDWTF; when I click on a topic that has updates on the topic list, I frequently am taken to a post that is dozens, hundreds, or in one case a thousand posts higher than the actual new post I was trying to reach. This seems to be triggered by visiting the full-page search results; I think it’s setting the unread marker to where the search result was.
One of our users managed to trigger the behavior as follows:
Open the search bar
Type a phrase that appears somewhere far up the topic than your latest read position.
Click “show more”
Look at the URL for the topic in question
Click the site logo to return to the “latest” list.
6, Look at the URL for the topic in question
Expected: Should point to the last read position, or the last post in the thread if all are read
Actual: Points to the same URL noted in step 4.
I’ll try that, but I’m hearing anecdotal reports that reloading the page does not work. Posting in the thread does, though that’s annoying because it impacts everyone else.
Not ember related. The search results were using latest as the preload store key, so when you went to that URL it was loading the cached version. Fixed here: