[Bug]: customerEmail includes + sign in checkout URL #5581
-
DescriptionUsing params in a checkout URL with customerEmail breaks if the customerEmail uses a + sign like: Current BehaviorUse a checkout URL like: Results in a server error:
WorkaroundYou can skip emails with a + sign but then the user has to fill it in during checkout. Not huge but would like it to work:
Environment:Next: 15.2 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
In a URL, the plus sign represents a space, so we get "first" as a value for the email. You need to urlencode the plus sign so it's truly treated as the plus sign: |
Beta Was this translation helpful? Give feedback.
In a URL, the plus sign represents a space, so we get "first" as a value for the email.
You need to urlencode the plus sign so it's truly treated as the plus sign:
first%2Blast@email.com