Fixes a redirection problem after login, where all login requests were redirecting to remote services, which is wrong local authentication requests.