Re: Actions and Anchors?

Petko Yotov <[email protected]> Mon, 18 Nov 2024 15:30:23 +0100
Newsgroups gmane.comp.web.wiki.pmwiki.user
Message-ID <[email protected]>
On 18/11/2024 11:50, Martin Cuno wrote:
> When I'm working, I often find myself at a certain point in the text,
> namely on an anchor, like ...?n=Fz.Fz146#A7815
> 
> I would like to be able to return to this point in the text when I
> switch on the "simplified view"!
> 
> Two problems:
> 
> a) Such an $action doesn't seem to work when it is attached to an
> anchor (n=Fz.Fz146#A7815?action=lgcsimpel1)? Is that the case, and
> can't it be changed?

You need to use one of these:
    ?n=Fz.Fz146&action=lgcsimpel1#A7815
    ?action=lgcsimpel1&n=Fz.Fz146#A7815

The fragment part comes after the pathname and the search parts.

> b) How can I incorporate a certain anchor into a new link target if I'm 
> on it?

Not sure what you mean. If the edited page has many anchors, and submit 
it, PmWiki doesn't know where was the cursor.

Petko