misdirected links

Forum News, Announcements and any issues you're having with the forum

Moderator: myglaren

User avatar
NewcastleFalcon
Posts: 8394
Joined: 25 Feb 2009, 11:40
x 514

Re: misdirected links

Post by NewcastleFalcon » 01 Sep 2019, 18:17

xantia_v6 wrote:
01 Sep 2019, 11:43
NewcastleFalcon wrote:
01 Sep 2019, 09:52
Mike, here is a screen print from the relevant page with me hovering the cursor over the heading of the relevant post. To put a link in any of my posts to another forum post I right click and select copy link location then post the link into my post.
Going back a step, how did you navigate to the page that you posted the image of. I can see the problem in the url of that page, but need to find the code that generated that url. I think that this issue probably only affects links to posts in topics with many pages.
I usually jump into the forum at the board index page.
Then off topic chat lounge
Then page down to Pickled Egg jukebox
Then on the page number. Usually the last page number although I knew that screenshot page was a couple of pages back from that.
Clicked on the page no to scroll through and find it

Hovered over the link and took the screenshot.

Regards Neil

Normally I wouldn’t go through that routine but find it on a search on the FCF and go directly to the post

User avatar
xantia_v6
Forum Admin Team
Posts: 6550
Joined: 09 Nov 2005, 23:03
x 315

Re: misdirected links

Post by xantia_v6 » 01 Sep 2019, 18:32

What I want to know is exactly how (on which page and where) you generate (or navigate to) urls like: viewtopic.php?t=50203&start=2265#p617861 , it is not a reliable url format (as we have discovered), and I don't think that the forum should be generating them.

User avatar
NewcastleFalcon
Posts: 8394
Joined: 25 Feb 2009, 11:40
x 514

Re: misdirected links

Post by NewcastleFalcon » 01 Sep 2019, 18:38

xantia_v6 wrote:
01 Sep 2019, 18:32
What I want to know is exactly how (on which page and where) you generate (or navigate to) urls like: viewtopic.php?t=50203&start=2265#p617861 , it is not a reliable url format (as we have discovered), and I don't think that the forum should be generating them.



viewtopic.php?p=616908&hilit=Burt#p616908


That link there is produced by using the “search this topic” feature and does have some extra gubbins brought with it but works just the same for me

Regards Neil

The Burt in the search term is because I know I used Burt Bacharach in the original post :!:
Last edited by NewcastleFalcon on 01 Sep 2019, 19:17, edited 1 time in total.

User avatar
NewcastleFalcon
Posts: 8394
Joined: 25 Feb 2009, 11:40
x 514

Re: misdirected links

Post by NewcastleFalcon » 01 Sep 2019, 18:52

So that viewtopic ref was precisely produced by

Going to the Pickled Egg jukebox topic, or any other topic

Putting a search term in the search this topic box

This pulls out a list of hits. 5 in the case of “Burt” for the Pickled Egg jukebox

Right click on the search result for the three wheels on my wagon post on the post header

Copy link location

Paste into post

Regards neil

User avatar
mickthemaverick
donor 2019
Posts: 406
Joined: 11 May 2019, 17:56
x 118

Re: misdirected links

Post by mickthemaverick » 01 Sep 2019, 18:54

viewtopic.php?t=50468#p618179

In case it helps, to produce the link above I went to a random thread, picked a random post then right clicked on the "RE:........" title line and selected "copy link address". I then came back to this thread and pasted the address above. In the editing screen the full link is displayed but when I preview it the system deletes the https://frenchcarforum.co.uk/forum/ part and just posts the link as you see it

Any help? If I'm just complicating things just delete the post and I won't mind :)

User avatar
NewcastleFalcon
Posts: 8394
Joined: 25 Feb 2009, 11:40
x 514

Re: misdirected links

Post by NewcastleFalcon » 01 Sep 2019, 19:02

If you click directly on the search result relevant post title you get

viewtopic.php?p=616908&hilit=Burt#p616908

If you press jump to topic from the search list you get this syntax

viewtopic.php?p=616908&hilit=Burt#p616908

Just the same

Regards Neil

User avatar
xantia_v6
Forum Admin Team
Posts: 6550
Joined: 09 Nov 2005, 23:03
x 315

Re: misdirected links

Post by xantia_v6 » 01 Sep 2019, 19:23

Thanks, I have found the problem now. I have recently changed the way that some forum links are generated (reasons unimportant here), but this is actually a bug that has always been in the forum software that may never have been noticed before.

A link of the form viewtopic.php?t=50203&start=2265#p617861 tells the forum to send the page of topics which starts with the 2265th post in topic 50203 and then the browser to scroll the page so that post 617861 is at the top of the screen.

The problem is that for reasons I partly understand, different users have the posts in a topic counted differently. For example if you deleted a post, the deleted post still gets counted for you, as the stub is visible, but for other users it is invisible and does not get counted. The number of posts per page is fixed, so occasionally, a post will slip onto the next or previous page, and the browser can't align to it, so just displays the first post on the offered page.

I should be able to come up with a simple fix, but need to think about the html coding.

User avatar
NewcastleFalcon
Posts: 8394
Joined: 25 Feb 2009, 11:40
x 514

Re: misdirected links

Post by NewcastleFalcon » 01 Sep 2019, 19:38

xantia_v6 wrote:
01 Sep 2019, 19:23
Thanks, I have found the problem now.

I should be able to come up with a simple fix, but need to think aboum
Thanks Mike, we are fortunate that such matters are sorted out by a lot of excellent work and knowledgeable members like yourself.

We all await Mick s musical taste being inflicted on us all when he gets access to the Pickled Egg Jukebox.

Regards Neil

User avatar
mickthemaverick
donor 2019
Posts: 406
Joined: 11 May 2019, 17:56
x 118

Re: misdirected links

Post by mickthemaverick » 01 Sep 2019, 19:56

NewcastleFalcon wrote:
01 Sep 2019, 19:38
xantia_v6 wrote:
01 Sep 2019, 19:23
Thanks, I have found the problem now.

I should be able to come up with a simple fix, but need to think aboum
Thanks Mike, we are fortunate that such matters are sorted out by a lot of excellent work and knowledgeable members like yourself.

We all await Mick s musical taste being inflicted on us all when he gets access to the Pickled Egg Jukebox.

Regards Neil
I echo Neils comments. Thanks Mike really appreciate your time and abilities.
Now I can launch Black Sabbath, Metallica and The Black Eyed Peas!!! May sound more like Mozart and The Beatles when and if I do get round to it. Did I mention I'm tone deaf? :-D :-D :-D

User avatar
xantia_v6
Forum Admin Team
Posts: 6550
Joined: 09 Nov 2005, 23:03
x 315

Re: misdirected links

Post by xantia_v6 » 01 Sep 2019, 19:58

It should be fixed now, those links are now of the format: viewtopic.php?p=618186#p618186 which is an absolute url that will work for any user.

There may be other link locations with a similar issue, but I will fix them as I find them.

User avatar
mickthemaverick
donor 2019
Posts: 406
Joined: 11 May 2019, 17:56
x 118

Re: misdirected links

Post by mickthemaverick » 01 Sep 2019, 21:38

XJ40 FOS.jpg
My own work
I am just testing direct upload of my own work picture and this thread is a covenient test place now!!
Thanks for the info too Steve.

User avatar
mickthemaverick
donor 2019
Posts: 406
Joined: 11 May 2019, 17:56
x 118

Re: misdirected links

Post by mickthemaverick » 04 Sep 2019, 20:12

Mike, I have come across another quirk with the in forum links. Neil posted in 'picture of the day' a link to the jukebox thread. When I clicked it, it took me to the thread but I was no longer logged in. On returning to the first thread my login was restored. I know because I view threads with the latest posting at the top of Page 1 and when I used the link it took me to the right post but it was presented on P154 confirming that I had lost my login default settings!!

User avatar
xantia_v6
Forum Admin Team
Posts: 6550
Joined: 09 Nov 2005, 23:03
x 315

Re: misdirected links

Post by xantia_v6 » 05 Sep 2019, 07:59

I could not reproduce the problem yet.

If you still have the problem with that link, can you try reloading the page where you appear not to be logged-in to see if that fixes it?

Can you give a link to the actual post with the link that has the problem?

User avatar
mickthemaverick
donor 2019
Posts: 406
Joined: 11 May 2019, 17:56
x 118

Re: misdirected links

Post by mickthemaverick » 05 Sep 2019, 11:11

viewtopic.php?p=618682#p618682
This is the link address for Neil's post with the link to the pickled egg jukebox in it
However it is working now, so that one may have to go on the FNF hook.!! Thanks for looking Mike.