Changed login to redirect only if target screen is not standalone and there is no transition, otherwise does it in-request with a 401 response code as before