How to handle email address with + symbol in URI #13885
Unanswered
jonathanredford
asked this question in
Help
Replies: 1 comment
-
'+' sign is decoded back to a space in a query string. So before you add the email to the query string, encode and then attach to preserve the special character. Ex: "localhost:3000?email=" + encodeURIComponent('[email protected]') |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My app needs to access email address pass to it via the url query string.
In some case, a
+
will be present on the left side of the@
however when accessing the query object either via the context in a server handler ornext/router
on the client side, the+
is always replaced with a space.Not sure if this is a bug or not so figured I'd post here before creating an issue to get some feedback from the community.
Beta Was this translation helpful? Give feedback.
All reactions