> In fact, the MakePageName function contains the line > > $str = preg_replace('/[#?].*$/', '', $str); > > so I think the line in trails.php that does > > preg_replace('/[#?].+/', '', $match[3]) > > is redundant and can be removed.
Changing trails.php line 74 from $tgt = MakePageName($trailname, preg_replace('/[#?].+/', '', $match[3])); to $tgt = MakePageName($trailname, $match[3]); fixed the problem. MakePageName removes any anchors and the book is now coming out as expected. See http://juxtr.net/books/NineMonthsInNewZealand/HomePage Might that change be included in the core? JR -- John Rankin _______________________________________________ pmwiki-devel mailing list pmwiki-devel@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-devel