From 344c825183cd50febbcb8dd73ccbe959050bcd5f Mon Sep 17 00:00:00 2001 From: Vijay Budhram Date: Wed, 12 Aug 2026 14:46:59 -0400 Subject: [PATCH] fix(settings): point app download buttons at Bitly link --- .../Settings/ConnectAnotherDevicePromo/index.test.tsx | 4 ++-- .../Settings/ConnectAnotherDevicePromo/index.tsx | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) 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}