diff --git a/packages/fxa-settings/src/components/Settings/ConnectAnotherDevicePromo/index.test.tsx b/packages/fxa-settings/src/components/Settings/ConnectAnotherDevicePromo/index.test.tsx index 1cb8b17c77a..f66bed463be 100644 --- a/packages/fxa-settings/src/components/Settings/ConnectAnotherDevicePromo/index.test.tsx +++ b/packages/fxa-settings/src/components/Settings/ConnectAnotherDevicePromo/index.test.tsx @@ -16,11 +16,11 @@ describe('Connect another device Promo', () => { await screen.findByText('Find Firefox in the Google Play and App Store.'); expect(screen.getByTestId('play-store-link')).toHaveAttribute( 'href', - 'https://app.adjust.com/2uo1qc?redirect=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dorg.mozilla.firefox' + 'https://mzl.la/setting-appdownload' ); expect(screen.getByTestId('app-store-link')).toHaveAttribute( 'href', - 'https://app.adjust.com/2uo1qc?redirect=https%3A%2F%2Fitunes.apple.com%2Fus%2Fapp%2Ffirefox-private-safe-browser%2Fid989804926' + 'https://mzl.la/setting-appdownload' ); }); }); diff --git a/packages/fxa-settings/src/components/Settings/ConnectAnotherDevicePromo/index.tsx b/packages/fxa-settings/src/components/Settings/ConnectAnotherDevicePromo/index.tsx index 463e0e27ac9..82ebfded964 100644 --- a/packages/fxa-settings/src/components/Settings/ConnectAnotherDevicePromo/index.tsx +++ b/packages/fxa-settings/src/components/Settings/ConnectAnotherDevicePromo/index.tsx @@ -9,6 +9,9 @@ import { SettingsContext } from '../../../models/contexts/SettingsContext'; import GleanMetrics from '../../../lib/glean'; import { FtlMsg } from 'fxa-react/lib/utils'; +// Bitly smart link. It detects the platform and redirects to the correct store. +const APP_DOWNLOAD_LINK = 'https://mzl.la/setting-appdownload'; + export function ConnectAnotherDevicePromo() { const { navigatorLanguages } = useContext(SettingsContext); const GooglePlayBadge = getStoreImageByLanguages( @@ -39,7 +42,7 @@ export function ConnectAnotherDevicePromo() { GleanMetrics.accountPref.googlePlaySubmit()} > {GooglePlayBadge} @@ -47,7 +50,7 @@ export function ConnectAnotherDevicePromo() { GleanMetrics.accountPref.appleSubmit()} > {AppStoreBadge}