Fixed issue with redirect url after login.