Solved another redirect related issue when using OpenID providers