Redirect to right url on github callback