[pmwiki-users] (UserAuth2) Problem with $UA2AfterLogoutRedirectTo

Petko Yotov 5ko at 5ko.fr
Tue Feb 23 06:43:17 CST 2010


On Monday 22 February 2010 15:06:21, Harald C. wrote :
> >> When looging out, the page to retun to can be set via
> >> $UA2AfterLogoutRedirectTo in the local/config.php.
> >>
> >> If I set
> >> 	$UA2AfterLogoutRedirectTo = 'SomeGroup.SomePage';
> >> I return to /SomeGroup/SomePage. That works fine.
> >> But how can I achieve to always return to that (main) page where I
> >> clicked Logout?
> >> (The wiki commands are not in the main page but in a site-wide header
> >> "page".)
> 
> Petko Yotov schrieb am / wrote on 22.02.2010 14:28:
> > It might work with this line (untested) :
> >
> >    $UA2AfterLogoutRedirectTo = $pagename;
> 
> Unfortunately this doesn't work. I land on /Site/PageActions .
> Any other ideas somebody?

Aha. In your page [[Site.PageActions]] you may have a link like 

  * [[{$FullName}?action=logout | logout]]

You should use {*$FullName} with the "*" instead of {$FullName}. Like with 
other links [[{*$FullName}?action=edit | Edit]] on that page.

Petko



More information about the pmwiki-users mailing list