[pmwiki-users] Actions and Anchors?

Petko Yotov 5ko at 5ko.fr
Mon Nov 18 06:30:23 PST 2024


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



More information about the pmwiki-users mailing list