I was having an issue where after logging in from the home page, mediawiki would bring you straight back to the login page with a username and password field.
So I modified this code:
// Return URL $config['return_server'] = (isset($_SERVER["HTTPS"]) ? 'https://' : 'http://') .$_SERVER['SERVER_NAME'].":".$_SERVER['SERVER_PORT']; $config['return_url'] = $config['return_server'].$_SERVER['REQUEST_URI'];
to
// Return URL $config['return_server'] = (isset($_SERVER["HTTPS"]) ? 'https://' : 'http://') .$_SERVER['SERVER_NAME'].":".$_SERVER['SERVER_PORT']; if ($_REQUEST["title"] == $lg->specialPage("Userlogin")) { $config['return_url'] = $config['return_server'].$_SERVER['SCRIPT_NAME']; } else { $config['return_url'] = $config['return_server'].$_SERVER['REQUEST_URI']; }
This resolved my issue.