Fixes a bug where we weren't url encoding emails before requesting the api/profiles/ endpoint. For emails containing special characters this was resulting in misses on the search and the following request to create the new profile would fail because it does already exist.
Manual Testing Steps
Selected to not use Klaviyo's opt-in settings in the extension settings. Then filled out the M2 footer form with an email that already existed in Klaviyo, made sure it was properly added to list.
Tested the same as above but with a new email that didn't exist in Klaviyo.
Pre-Submission Checklist:
[ ] You've updated the CHANGELOG following the steps here
[ ] Internal Only - If this is a release, please confirm the following:
[ ] The links in the changelog have been updated to point towards the new versions
[ ] The version has been incremented in the following places: module.xml and composer.json
NOTE: Please use the Changelogger cli tool to manage versioned file upgrades.
Description
Fixes a bug where we weren't url encoding emails before requesting the
api/profiles/
endpoint. For emails containing special characters this was resulting in misses on the search and the following request to create the new profile would fail because it does already exist.Manual Testing Steps
Pre-Submission Checklist:
NOTE: Please use the Changelogger cli tool to manage versioned file upgrades.