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.
Merge pull request #407 from floatdrop/patch-1

0.3, Forming right redirect url for enterprise