Send userId as query parameter to the manage premium page
Background / User story
When we implemented the CTAs for Premium, we took into consideration Specs and Designs for the accounts page (/manage
) that didn't end up being the ones for the MVP. The initial ones required an email to access the /manage
page.
The final MVP doesn't make use of an email, but rather of a userId
that should be received as a query parameter in the /manage
page.
Although the purchase page generates the userId
(that is being passed it to the extension) and it could be remembered, it would be lost whenever local storage is cleared.
What to change
- Design: (Link to any designs here)
- Research: (Link to any research data here)
- Spec: spec!406 (closed)
- Legal: (Link to JIRA ticket with Legal's approval)
-
Development: For premium users and for the
/manage
URL send the query parameterlic=%PREMIUM_USER_ID%
where%PREMIUM_USER_ID%
is the user ID assigned to Premium users.
Hints for testers
-
/manage
premium CTAs should have the new query parameterlic
with the value of the userId that the extension receive when it upgrades to Premium, either through the purchase page or through the mocked license server. - Premium CTAs should keep linking to the desired pages
- The
Sign in
button won't be able to have a proper userId (will always have an empty string) as only premium users can have userId. We are removing that button in https://gitlab.com/adblockinc/ext/adblockplus/adblockplusui/-/issues/1290.
Hints for translators
N/A
Edited by Adilson Sandoval