Fixed issue with redirect after SSO login