Compatibility with 1.8.2
Redirect fixes from the login page