Thread:Extension talk:GoogleAppsAuthentification/Redirecting to login page after login/reply

Thanks! Had the same issue. (MW1.19.1) However you missed one simple line.

Before the code above add:

Otherwise you get a blank page. (Or PHP-Error of unknown $lg, depending on your debug settings.)

Additionaly, after Login I get a dialog asking if I wanted to purge the cache of the mainpage. (Usually only NOT logged in users should get that.) Fixed it by changing:

to

Have to wait and see if there are serious isuess with with not-current mainpages.