App Install Oauth redirect_uri pointing to Google

Working on a custom for a client, and seeing something I haven’t come across so far.

I’m using the Custom distribution option, which gives you a URL the client can use to install the app on their store. However, when they do that, I get the error Oauth error invalid_request: The redirect_uri is not whitelisted, which turns out results from the fact that the redirect_uri is pointing to google, rather than the URLs configured on the app setup. I get something like this:

https://admin.shopify.com/store/store-name/oauth/authorize?client_id=dftgergegerertree&redirect_uri=google.com%3A%2F%2Fgoogle.com%2Fapi%2Fauth%2Fcallback&state=161899243743535&grant_options%5B%5D=

Tried different browsers, always with the same result.
Why would Shopify change the URL from the actual app URL to Google in install process?

In this case issue was a ENV variable (host) still set to the default value google.com. Maybe helpful to someone facing a similar issue.