Platonides a écrit :
Alexis Moinet wrote:
if ( $auto ) { $wgOut->redirect( $titleObj->escapeFullURL() ); $wgOut->addMeta( 'http:Refresh', '10;url=' . $titleObj->escapeFullURL() ); }
you can also simply reduce the waiting time (10 sec) by changing the value in $wgOut->addMeta( 'http:Refresh', '10;url=' . $titleObj->escapeFullURL() );
Changing the 10 sec to 0 sec will work like a redirect (in fact, it's a html redirect).
Unfortunately, it displays the "successlogin" page for a very small time before doing the redirect but maybe it's because I did it on local, perhaps a server installation will do it faster and won't display it ?
BTW, another problem of the "redirect() hack" is that the returnToMain() function is used in several other places (like wiki error display) so you better copy/paste the usefull part of the code directly in the successfulLogin() function and remove the call to returnToMain(). (and possibly do the same in SpecialUserLogout.php) BTW2, even when I don't change anything, I still have the problem of having the logged-in personnal tolls though I'm logged out, so that could be some problem on my side, not coming from modifying the returnToMain();