0.3, Forming right redirect url for enterprise

This fixes redirect loop for github enterprise users.

But I still got `Error retrieving currently authenticated GitHub user. Unauthorized` error.