Replace hardcoded domain with DOMAIN constant in redirect_uri