[pmwiki-users] How to redirect to a user-chosen page

Hans design5 at softflow.co.uk
Tue Jan 29 15:47:01 CST 2008


Tuesday, January 29, 2008, 8:53:52 PM, Randy wrote:

> What you suggested worked with a little adjustment (I'm not using  
> cleanURLs). For those who wish to try, this worked for me:

> (:fox redirectform foxaction=display redirect=1:)
> (:input hidden urlfmt pmwiki.php?n={$$target}:)
> (:input text target size=30:)
> (:input submit post "Go to page":)
> (:foxend redirectform:)

I was not happy with this urlfmt hack.
It should have worked without it, but it didn't.
So now I updated fox.php so it will provide a correct urlfmt
when redirect is set.

New update at: http://pmwiki.org/wiki/Cookbook/Fox

So now you can write your form like this:

(:fox redirectform foxaction=display redirect=1:)
(:input text target size=30:)
(:input submit post "Go to page":)
(:foxend redirectform:)

That is quite a short redirect form.
if no Group is given as part of target, the current group will be
used. If the page does not exist, you will  be invited to create it.


  ~Hans




More information about the pmwiki-users mailing list