[pmwiki-users] Problem with Fox and redirect with multiple pages

Hans design5 at softflow.co.uk
Tue Jan 13 05:51:40 CST 2009

Tuesday, January 13, 2009, 5:43:01 AM, James DeVain wrote:

> Instead of redirecting to the last page listed, it chooses the
> redirect based on reverse-alphabetical order. No matter how I
> arrange the order of pages, it always redirects to "DPage". If I
> remove DPage from the list, then it always goes to CPage, etc.

> This began happening when I upgraded from Fox Version 2008-07-11
> to version 2008-11-26. When I downgrade back to 2008-07-11, the
> problem goes away.

When the target array gets constructed, it also gets sorted.
The redirect=1  will redirect always to the last entry in th etarget
array, which is the last entry in alphabetical order.
I cannot remember this moment why I added
at the end of function FoxTargetList (which constructs the array of
target  page names). It may well be safe to remove (comment) that
line of code. Perhaps I could add a parameter with which one can
avoid the sort?

I think the best method to ensure redirection goes to a specific page
when there are multiple page targets
is to set the redirect explicetly. Try something like this for your form:

(:fox creategroup redirect="{$$groupname}.APage" pagecheck=1:)


More information about the pmwiki-users mailing list