The Cookbook/WikiCalendar includes a configuration setting to control how next and previous calendar period links render. By default, it creates links of the form
[[HomePage?logdate=yyyymm | Month yyyy]]. However, if the wiki uses addresses of the form
?pagename=Group.Page, this doesn't work. Instead, the calendar tries, and currently fails, to create links of the form
[[HomePage&logdate=yyyymm | Month yyyy]].
This works correctly with the following changes to pmwiki.php ([?#] becomes [?#&]):
$QueryFragPattern = "[?#&][^\\s$UrlExcludeChars]*"; ^ add & ... function LinkPage( ... ... if (!preg_match("/^([^#?&]+)($QueryFragPattern)?$/",$path,$match)) ^ add &
There may be another way to solve this, but the above is a quick fix that seems to work. In PmWiki 1, the calendar script uses ThisPage: markup, which supports a following & character.
The fix is to always use ?logdate=yyyymm. PmWiki knows how to handle this internally, even if the site is using ?pagename=... links. Feel free to close this issue if this works for you. --Pm
I think I found the problem. PmWiki correctly sets the $_GET array in the presence of extra '?'s in the QUERY_STRING, but it wasn't setting $_REQUEST. Thus a script making use of $_REQUEST instead of $_GET wouldn't see the corrected variables.
I've fixed PmWiki (2.0.beta4) to now update $_REQUEST as well as $_GET, so maybe this fixes things?