Welcome to WebmasterWorld Guest from 18.232.171.18

Forum Moderators: open

How to Display a url containing a fragment identifier on WebmasterWorld

     
11:00 am on Jul 17, 2019 (gmt 0)

Senior Member

WebmasterWorld Senior Member Top Contributors Of The Month

joined:Nov 13, 2016
posts:1193
votes: 280



System: The following 3 messages were cut out of thread at: https://www.webmasterworld.com/webmasterworld/4954245.htm [webmasterworld.com] by phranque - 5:52 pm on Jul 17, 2019 (utc -7)


It's off-topic, but talking about "tools" / "buttons", is it possible to create a link to a particular message? like url#anchor ?
11:17 pm on July 17, 2019 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member tangor is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Nov 29, 2005
posts:10136
votes: 1010


At one time you could ... but since the redesign/updates that no longer works ... or it if does, it extremely inconsistent. Would be nice to right click on the message id, copy the link, then paste it elsewhere. :)
12:50 am on July 18, 2019 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:11771
votes: 225


the hack that i use for displaying urls with fragment identifiers is to "unlink" the url by strategically inserting an empty style code tag in the url.
that makes it easy to cut-and-paste the complete url with fragment identifier
something like this:
https:[b ][/b ]//www.example.com/page#fragment-identifier

(spaces inserted for visibility)
3:01 am on July 18, 2019 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member tangor is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Nov 29, 2005
posts:10136
votes: 1010


Thanks for the heads up, phranque! Will try that out in the future!
3:45 am on July 18, 2019 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:Apr 9, 2011
posts:15756
votes: 828


I thought Dimitri was asking how to link to a particular message in a Forums thread. I never did figure out how to do it any way but typing it in manually:
https:/[b ][/ b]/www.webmasterworld.com/webmasterworld/4955034.htm#msg4955025
=
https://www.webmasterworld.com/webmasterworld/4955034.htm#msg4955025
7:40 am on July 18, 2019 (gmt 0)

Senior Member

WebmasterWorld Senior Member Top Contributors Of The Month

joined:Nov 13, 2016
posts:1193
votes: 280


I thought Dimitri was asking how to link to a particular message in a Forums thread.

Yes, this is what I meant. Several times, I wanted to link to a particular post, and couldn't do it, ending in linking to the topic itself, which was less convenient.

Thanks for the tip about the invisible space :)
7:47 am on July 18, 2019 (gmt 0)

Moderator from US 

WebmasterWorld Administrator robert_charlton is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Nov 11, 2000
posts:12338
votes: 400


how to link to a particular message in a Forums thread
lucy24, your solution will work, but there's a pagination consideration as well... and it's only dependable if you're linking to the first page of a thread, and then only if the posts per page setting is the same at both ends of the "chain".

If the url is written, say, using 30 posts per thread, and the user has his/her preferences set to 25 posts per thread, there are several possible chances of failure.

a) the link will break after the first page...
...or, a variant of this
b) if the url is for the first page, but say, for the 28th post, there will be no 28th post on the pages seen by the user with the 25-post preference.

For me, this inability to link to a particular post is the main drawback of WebmasterWorld's platform, which I otherwise like quite a bit As I understand things, fixing it would require a horrendous amount of programming and would require that all users maintain the same pagination.

8:26 am on July 18, 2019 (gmt 0)

Senior Member

WebmasterWorld Senior Member Top Contributors Of The Month

joined:Nov 13, 2016
posts:1193
votes: 280


would require a horrendous amount of programming and would require that all users maintain the same pagination.

Not necessarily, let's say you have a topic URL :

/xxx-p.html

"xxx" topic number (or first message number), and "p" the page number.

if you want to reach message yyy

/xxx.html?m=yyy

then the script which processes the request finds on which page the yyy message appears using the pagination option of the user and do a redirect like

/xxx-p.html?#yyy

or again easier would be to allow be

/yyy.html the script process the request redirects to /xxx-p.html#yyy
8:30 am on July 18, 2019 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member tangor is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Nov 29, 2005
posts:10136
votes: 1010


fixing it would require a horrendous amount of programming


For volunteers that's asking a lot. As I noted earlier, it was once possible, but the changes made over the last 18 months or so (which improved the site tremendously!) kinda broke that link possibility ... which was never 100% in the first place ... Robert ... thanks for the insight on pagination settings as that explain quite a lot!

Fortunately, linking to the thread still works perfectly well and in most cases is sufficient for horseshoes and in the ball park. :)
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members