Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^5: Bookmarklet to show deeplinks in perldoc.perl.org

by LanX (Sage)
on Jun 17, 2019 at 16:26 UTC ( #11101486=note: print w/replies, xml ) Need Help??


in reply to Re^4: Bookmarklet to show deeplinks in perldoc.perl.org
in thread Bookmarklet to show deeplinks in perldoc.perl.org

> But I'm not sure this is in fact a problem. open has no URL paths.

IMHO the #hash part for deep-linking to anchors are different

see Re^5: Bookmarklet to show deeplinks in perldoc.perl.org

> I have no idea what that means. Can you clarify? TIA.

Example:

  • pasting http://perldoc.perl.org/perlsyn.html#Loop-Control|perlsyn#Loop-Control
  • transforms to [HTTP://perldoc.perl.org/perlsyn.html#Loop-Control|perlsyn#Loop-Control]
  • shows as perlsyn#Loop-Control

more examples here: Re: Good Intentions: Wikisyntax for the Monastery (https)

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Replies are listed 'Best First'.
Re^6: Bookmarklet to show deeplinks in perldoc.perl.org
by jdporter (Chancellor) on Jun 18, 2019 at 14:29 UTC
    the #hash part for deep-linking to anchors

    Oh... So you're not talking about path parts. You're talking about fragment parts — URI parts

    So in some sense this is a form of link rot. I think there will always be some risk of this, since we don't have any control over how any external web site manages their anchors — nor indeed their paths — nor indeed even the domain names.

    It's the nature of the beast. People put external links in their posts; ten years later those links don't work. We just have to live with the risk.

    In general, I'd prefer to stay with perldoc.perl.org, since it is "official". I think we'd need a really compelling reason to switch to something else. Like we did with MetaCPAN.

    I reckon we are the only monastery ever to have a dungeon stuffed with 16,000 zombies.
      > You're talking about fragment parts URI parts

      the terminology varies depending on the source. the JS function to extract the fragment is called Location.hash()

      > this is a form of link rot.

      It's also varying with the version of perldoc. Strictly speaking we'd need to keep the version information too.

      > In general, I'd prefer to stay with perldoc.perl.org

      I'm fine with this but facilitating deep-linking would help posting ...

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

      ) well better not

      > In general, I'd prefer to stay with perldoc.perl.org, since it is "official"

      Well official is the release, we used to have our own, now totally outdated, copy.

      Like split

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11101486]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2022-05-29 09:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (101 votes). Check out past polls.

    Notices?