[pmwiki-users] Create a link for a general research - Créer un lien générique pour une recherche

Petko Yotov 5ko at 5ko.fr
Fri Feb 15 01:32:33 PST 2019

The # character in a URL means an anchor inside the page, the browser 
doesn't send it to the server.

You need to percent-encode some special characters, in your case "#" 
with "%23":


See https://en.wikipedia.org/wiki/Percent-encoding

You probably don't need Site.PageListTemplates as it is used 
automatically, unless there is also an [[#includeonly]] section in 

Note, your current search q={*$Name} is for all pages containing the 
string "{*$Name}" in the content (page text and page name). If you want 
only pages that start with the same string you need to use 
"name={*$Name}*" in your search, and also encode the "=" with "%3d":


This finds all pages that start with {*$Name} in all groups. If you only 
want to find pages in the same group, use {*$FullName}:


In some cases it may be better to also encode the standalone "*" with 

   ... {*$Name}%2a ...

You should not percent-encode the characters {, *, $, }, that are not 
part of the URL but PmWiki variables.


On 15/02/2019 09:59, Pierre-Marie FidelioEspoir wrote:
> The link
> [[{*$FullName}?action=search&q={*$Name}*&fmt=Site.PageListTemplates#includemore
> |  research for page with same beginning and the choosen template
> includemore ]]
> don’t work : where is my mistake ? Thanks

More information about the pmwiki-users mailing list