Updated to handle github redirects