Commit 538ad66
chore(rewards): fix campaign param extract (#29856)
## **Description**
-
"?~campaign=ondo&__branch_flow_id=1580894552734833035&~referring_browser=Chrome"
would fail to be parsed correctly, the campaign param we extract would
be null, and the user would end up in the rewards dashboard instead of
the ondo details campaign page.
- Added support for upcoming perps trading comp deeplink
## **Changelog**
CHANGELOG entry: null
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> Low risk: small, localized change to rewards deeplink query parsing
that may only affect navigation routing for rewards campaign links.
>
> **Overview**
> Rewards deeplink parsing now falls back to reading Branch-style
`~campaign` when `campaign` is missing, preventing campaign links from
dropping users onto the generic rewards dashboard.
>
> It also expands allowed campaign values to include the new
`perps-comp` campaign so those deeplinks can route correctly.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
ddca21a. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent f2d69c4 commit 538ad66
1 file changed
Lines changed: 3 additions & 3 deletions
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
0 commit comments