[pmwiki-users] Redirection from action handler

Patrick R. Michaud pmichaud at pobox.com
Sat Jul 2 10:13:00 CDT 2005


On Sat, Jul 02, 2005 at 11:44:41AM +0200, Joachim Durchholz wrote:
> 1) It can delay or prevent redirection, depending on the settings of 
> $RedirectDelay and $EnableRedirect (what is that good for anyway? - 
> well, I can work around that)

$RedirectDelay is there because some rare sites wish to display a
short notice when a redirection occurs.  I don't know anyone who actually
does this, however.

$EnableRedirect is almost strictly for debugging/diagnostic purposes.
Again, I don't know anyone who disables it (and anyone who does is
going to find things such as ?action=edit very annoying).  

Both of these variables are only indirectly related to the (:redirect:)
markup, their primary purpose is diagnostic.

> 2) A URL parameter of ?redirect=0 will prevent the redirection (instead, 
> it will simply output a single line of "Redirect to $URL"). This one is 
> OK by me - one might want to test the redirection mechanism itself :-)

Yes, that's why it's there.

> 3) I want to use a redirect code of 303 (307 might be OK too, but there 
> seem to be browsers that don't understand it). 

For this it's probably worthwhile to use something other than Redirect().
Either that or it may be useful to get Redirect() to always use 303 --
I'd have to look into it.

> 4) I'd like to see the texts that Redirect emits internationalised.

Makes sense, I'll add that soon.  But since the vast majority of sites
keep $RedirectDelay=0, there's little need for seeing this.

Pm



More information about the pmwiki-users mailing list