When linking to resources I prefer to use named anchors (if available), so people don't have to go searching for what exactly I'm referring to on the linked page.  With the shortcut [mod://], however, this doesn't seem to be possible, because special characters like # or % are being URI-escaped, which produces hrefs that don't work (example).

I typically end up using a generic [http://...] with a URI like what would be created by [mod://]:

[http://search.cpan.org/perldoc?pp#-a,_--addfile=FILE%7cDIR|my link +text]

(which doesn't have the problem), but it would be nice to have it working directly with the shortcut in the first place, i.e.

[mod://pp#named-anchor|my link text]

(as it is, it typically takes two steps for me, because I don't seem to be able to remember the exact URI that's being generated by the shortcut...)

So I'm wondering if there is a way to somehow quote/escape special characters (such that they aren't URI-escaped by PM), or what's the proper way to link to anchors.  Or is this maybe a browser issue? (I'm using Firefox)

(My apologies in case this has already been discussed — a quick search turned up a number of nodes, but none of those did really apply to this specific issue.)

Replies are listed 'Best First'.
Re: [mod://] shortcut with named anchors
by jdporter (Paladin) on Nov 16, 2009 at 21:10 UTC

    Yes, we've been talking about this for a long time. And tye has been planning on doing it for a long time. But he's got a huge list of other shortcut enhancements, and I guess he wants to roll them all out at the same time.

    See e.g. Re: Problem with id:// shortcuts and anchors (care).

    Btw - some shortcut types do already support linking to named anchors; just not all of them; and not [mod://].

    What is the sound of Windows? Is it not the sound of a wall upon which people have smashed their heads... all the way through?