I’m having an encoding issue in my redirect rule when sending the user’s email as a request parameter. I add the request parameter like this:
context.redirect = {
url: "https://my-domain.com/verify-email?email=" + user.email
};
This works fine for a regular email where the @ is properly encoded, but when it contains a + it is received as %20. Causing email addresses like for instance user+1@my-domain.com being received as user%201%40my-domain.com rather than user%2B1%40my-domain.com.
Is this expected behaviour? And if so, how can/should I deal with this?