Prevent 'jumping out' and 'back in' when using notifications for the current topic


(Matches) #1

If I am reading a topic but haven’t reached a post yet, I will get a blue notification in the top right corner. If I click on this notification, and click on the ‘goto’ link, I see what looks like a page refresh and then it goes to the topic post (that is sometimes one post below the one I was reading)

Proposal: Check if I’m in the topic I’m about to jump to. If I am, cancel the page refresh style navigation and use a page anchor jump (or similar) instead to prevent the page from refreshing. (This process might need to address your page loads though, it might have to be topic + current page for the anchor)


(Sam Saffron) #2

Yes we definitely want to get this fixed, our in page router should be much smarter here.

It does get a bit tricky cause sometimes posts are in memory but not in DOM.


(Jeff Atwood) #3

This should be trivial to tell based on the URL though.


(Sam Saffron) #4

Yeah I am going to look through the routing code.


(Matches) #5

Even with url auto change disabled?


(Kane York) #6

Uh, yeah… it just needs to check the topic ID. The auto-change is for the post number.