[web] Update Share modal paywall CTAs to point to the plans interstitial (#34410)

* [web] Send paywall upgrade CTAs to the plans interstitial

* fix: encode upgradePlan campaign source with URLSearchParams

Co-authored-by: lzear <8427791+lzear@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
GitOrigin-RevId: ddde4d77d72e649f5ded5839a2a2155e5f679f53
This commit is contained in:
Antoine Clausse
2026-06-15 08:07:04 +00:00
committed by Copybot
co-authored by lzear copilot-swe-agent[bot]
parent a4c91ce671
commit 32664a1d12
@@ -39,6 +39,10 @@ export function upgradePlan(source: string) {
}
if (openedWindow) {
openedWindow.location = '/user/subscription'
const searchParams = new URLSearchParams({
itm_campaign: source,
})
openedWindow.location = `/user/subscription/choose-your-plan?${searchParams.toString()}`
}
}