PITS /
00585: Allow URL arguments in trail pages.
Summary: Allow URL arguments in trail pages.
Created: 2005-11-08 12:21
Status: Closed - fixed in 2.1.beta21
Category: CoreCandidate
From: Martin Fick
Assigned:
Priority: 3
Version: 2.0
OS: All
Description: Currently Trails do not work if the pages in the trail have URL arguments appended to them. If this were fixed it would be much easier to create DynamicWikiTrails without having to patch the trails.php script.
One easy fix for this is to edit the ReadTrail() function in trails.php so that instead of:
} else $tgt = MakePageName($trailname,$match[3]);
it reads like:
} else { $tgtname = preg_replace("/\\?.*=.*/", "", $match[3]); $tgt = MakePageName($trailname,$tgtname); }
The reason this currently fails is because the current pagename will not match pagenames created by ReadTrail() since the pagenames in the ReadTrail() page list will have URL arguments included while the current pagename will not.
Test:
A small wiki trail:
<<|PITS.00585|>> | << PITS.00585?Arg=Val | PITS.00585 | 00232 >> |
See also:
- 00232 sounds like a manifestation of the same problem