Jumping to end of thread

Jumping to end of thread

Author
Discussion

miniman

Original Poster:

24,981 posts

263 months

Thursday 26th November 2020
quotequote all
Chrome on iPhone 11

Here is what happens:

What's New - going to click on Cheap fireworks in Manchester thread which I have never visited before. I'd expect it to go to Page 1.



I end up here:



Which is half way down the last page:


dhutch

14,390 posts

198 months

Thursday 26th November 2020
quotequote all
I get exactly the same sort of thing as Miniman.

Samsung S10, on Brave (for PH adds) or Chrome.

In addition to this, in a thread I've visited recently. Often it will take me to the first page!

Daniel

anonymous-user

55 months

Thursday 26th November 2020
quotequote all
Same - iPhone 6s with Safari and Chrome.

Edited by anonymous-user on Thursday 26th November 21:11

cptsideways

13,551 posts

253 months

Thursday 26th November 2020
quotequote all
I get this too Android Chrome drives me nuts

miniman

Original Poster:

24,981 posts

263 months

Friday 27th November 2020
quotequote all
I suspect this started happening when the mobile UI was simplified and the "go to new posts" icon was removed, with the href for that object being incorrectly applied to the thread title link.

The problem and solution is super simple. Here's what happens on Desktop:





You can see the HREF for the text is going to the base URL for the thread - i.e. page 1 (depending on what sort order the user has set as their preference). On the "goto newest" link, you can see the &d=xxxxxxx#separator part of the URL that drops to the last page and to the red separator.

Here is the mobile markup:



You can see very clearly that the "last page and separator" link is applied to the whole block which is what you get when you click the title.

If you remove &d=14940.67920#seperator from the href when the user has not visited that thread before (which I assume you know because of the class "topic unread", it will work fine.

I've done the diagnosis for you, are you going to fix it Matt?

Muppet007

408 posts

46 months

Friday 27th November 2020
quotequote all
Happens all the time when logged in.
Does not when logged out, so I stay logged out most of the time.

Samsung S9 on using Chrome.

miniman

Original Poster:

24,981 posts

263 months

Friday 27th November 2020
quotequote all
Muppet007 said:
Happens all the time when logged in.
Does not when logged out, so I stay logged out most of the time.

Samsung S9 on using Chrome.
That will be because when logged out it can't attempt to figure out when you last visited.

Johnnytheboy

24,498 posts

187 months

Friday 27th November 2020
quotequote all
I wish there was a simple 'last page' button on long threads.

mcdjl

5,449 posts

196 months

Friday 27th November 2020
quotequote all
I've just been to one thread I haven't visited in a few years (both in boats, planes) and got taken to the last post (mosquitos) missing a few days of posts, then to the cool pictures thread and off to the top of the last page..... Despite having seen all but the last two posts yesterday.

mcdjl

5,449 posts

196 months

Friday 27th November 2020
quotequote all
miniman said:
I suspect this started happening when the mobile UI was simplified and the "go to new posts" icon was removed, with the href for that object being incorrectly applied to the thread title link.

I've done the diagnosis for you, are you going to fix it Matt?
They're not going to fix it! Paying in the thread is as much as they can do.

miniman

Original Poster:

24,981 posts

263 months

Friday 27th November 2020
quotequote all
Johnnytheboy said:
I wish there was a simple 'last page' button on long threads.
There is - just click the page number. Works on both desktop and mobile (although on mobile it's not immediately obvious that the number is a link) - e.g. page 68 in this example:




Johnnytheboy

24,498 posts

187 months

Friday 27th November 2020
quotequote all
I'd rather have something as big as the next page button. It's a bugger to hit with fat fingers on a touchscreen.

Edit, I don't get that numerical list on my phone, I have to manually enter the page number.

miniman

Original Poster:

24,981 posts

263 months

Friday 27th November 2020
quotequote all
Johnnytheboy said:
I'd rather have something as big as the next page button. It's a bugger to hit with fat fingers on a touchscreen.

Edit, I don't get that numerical list on my phone, I have to manually enter the page number.
Top image is desktop

Matt Dell

3,242 posts

156 months

PH TEAM

Saturday 28th November 2020
quotequote all
miniman said:
I've done the diagnosis for you, are you going to fix it Matt?
Amazing, really helpful! thumbup

I still can't replicate it on my phone, but that level of detail helps me a lot.

I'm in two minds. I could just remove the seperator tag from the link, but ideally the separator logic would work correctly. However, as usual, the best approach is going to take a lot longer. I can't do much with the code as we turn off the lights over the weekend, but I can at least see the relevant code and what could be done.

Leave it with me and give me a few days to assess and run a solution by the team.

miniman

Original Poster:

24,981 posts

263 months

Saturday 28th November 2020
quotequote all
On desktop, it’s easier because you have a separate link for “go to newest posts”.

If you could find space in the UI for a similar link on mobile, that would be your simplest solution. Otherwise you’re going to need to have some logic along the lines of:

If user has previously visited page, insert go to end link
Else insert first page link

Given you can bold / unbold links to shown when they have been visited in My Stuff I imagine you are tracking which users have read which threads but that seems like a processing heavy thing to loop through.

Muppet007

408 posts

46 months

Saturday 28th November 2020
quotequote all
miniman said:
Muppet007 said:
Happens all the time when logged in.
Does not when logged out, so I stay logged out most of the time.

Samsung S9 on using Chrome.
That will be because when logged out it can't attempt to figure out when you last visited.
Yes I know. That's why I do it to stop the annoying crap.

Pinkie15

1,248 posts

81 months

Wednesday 2nd December 2020
quotequote all
I get this too, it's flippin annoying.

Just visited 1275GT's thread on his Vitesse, I've read all 24 pages previously, takes me to page 1.

Other threads I've never read takes me to the end.

I'd really expect it to take me to the last post since I visited a thread, or first page for one I've never opened.

Does it both on my Xperia XA (Android, chrome) and iPhone 7 (chrome).

miniman

Original Poster:

24,981 posts

263 months

Wednesday 2nd December 2020
quotequote all
Pinkie15 said:
I get this too, it's flippin annoying.

Just visited 1275GT's thread on his Vitesse, I've read all 24 pages previously, takes me to page 1.

Other threads I've never read takes me to the end.

I'd really expect it to take me to the last post since I visited a thread, or first page for one I've never opened.

Does it both on my Xperia XA (Android, chrome) and iPhone 7 (chrome).
Precisely, you're describing exactly what happens now and exactly how logic suggests it should work.

I don't think PH have any developers to be honest.

Matt Dell

3,242 posts

156 months

PH TEAM

Wednesday 2nd December 2020
quotequote all
miniman said:
I don't think PH have any developers to be honest.
Hello. There's 6 of us and we're all flat out.

We've been looking into this issue and we've found a few edge cases to consider. It's unfortunately not as simple as removing the #separator value in the URL as there's some lovely code in there doing device detection and going off to the database to take you to (what it thinks is) the right page, depending on your forum settings, which needs to be properly evaluated and tested.

If this forum wasn't written in Classic ASP we could move a lot quicker for you.

Matt Dell

3,242 posts

156 months

PH TEAM

Tuesday 5th January 2021
quotequote all
Sorry for the delay. I've just released some code to fix this issue.

Better now?