[pmwiki-users] Redirect problem with parameters

Peter Bowers pbowers at pobox.com
Thu Jan 29 12:29:09 CST 2009


>
> The markup below, presuming redirect works, causes a login action
>> loop. After successful login pmwiki does not notice the conditional
>> change and goes in circles.
>>
>> --------------------
>> (:if authid:)
>> Hello {$AuthId}, nice to see you again.
>>
>> (:else:)
>> (:redirect {$FullName}?action=login:)
>>
>> (:ifend:)
>> -------------------
>>
>
> IIRC the redirect rule fires before the if rule.  The redirect rule causes
> any current-page-processing to halt and a new page is loaded (i.e., the if
> rule will never be processed).  Someone else who has looked at this more
> recently (or has a better memory) would have to confirm that...
>
> However, it makes sense to me that redirect should prevent infite loops of
> redirection...?  (If I've understood correctly what's happening.)
>
> -Peter
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20090129/fce667c9/attachment.html 


More information about the pmwiki-users mailing list