Skip to content

Commit 1443df3

Browse files
authored
Merge pull request #6068 from EdgeApp/jon/share-url-dl-edge-app
Fix Share button referral link to use dl.edge.app
2 parents e83ffad + 6950fe4 commit 1443df3

4 files changed

Lines changed: 15 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- added: NYM swap provider (`nymswap`)
66
- changed: Route maestro test builds to a dedicated Zealot channel so they no longer appear in the production release list.
77
- changed: Hide the wallet "Get Raw Keys" option behind Developer Mode, while still showing it for wallets that fail to load.
8+
- fixed: Share button referral link now uses the dl.edge.app deep-link domain so appreferred attribution is tracked
89
- removed: SideShift `privateKey` from env config; the swap integration no longer sends the affiliate secret header.
910

1011
## 4.49.0 (staging)

src/components/themed/SideMenu.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,13 @@ export function SideMenuComponent(props: Props): React.ReactElement {
199199
.replace('0x', '')
200200
.substring(0, 10)
201201

202-
const url = `${config.website}?af=appreferred_${refId}`
202+
// Share the app via the AppsFlyer deep-link URL so the appreferred referral
203+
// attribution (refDeviceInstallerId) is tracked. Defaults to dl.edge.app for
204+
// Edge; white-label builds fall back to their own website domain. The trailing
205+
// slash before the query matches the dl.edge.app deep-link format (see
206+
// DeepLinkParser), which AppsFlyer needs to resolve the attribution.
207+
const shareUrlBase = config.referralAppShareUrl ?? config.website
208+
const url = `${shareUrlBase}/?af=appreferred_${refId}`
203209
const subject = sprintf(lstrings.share_subject, config.appName)
204210

205211
await Share.open({

src/theme/edgeConfig.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export const edgeConfig: AppConfig = {
3737
supportSite: 'https://help.edge.app/support/tickets/new',
3838
termsOfServiceSite: 'https://edge.app/tos/',
3939
website: 'https://edge.app',
40+
referralAppShareUrl: 'https://dl.edge.app',
4041
supportChatSite: 'https://support.edge.app/hc/en-us?chat=open',
4142
quickActions: {
4243
uninstallWarningUrl:

src/types/types.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,12 @@ export interface AppConfig {
376376
supportSite: string
377377
termsOfServiceSite: string
378378
website: string
379+
/**
380+
* Base URL used when sharing the app for referral attribution (the AppsFlyer
381+
* deep-link domain). Falls back to `website` when unset so white-label builds
382+
* share links on their own domain.
383+
*/
384+
referralAppShareUrl?: string
379385
disableSwaps?: boolean
380386
disableSurveyModal?: boolean
381387
/**

0 commit comments

Comments
 (0)