Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Special character + is automatically removed from query string #2642
Steps to reproduce
Add a query string with the special character "+" to the URL in Codesandbox, e.g. add "?email@example.com" to the end of the URL: https://firstname.lastname@example.org
What is expected?
I can access the query parameter "test" with
What is actually happening?
When I try to get the value of the query parameter "test" I only get "test email@example.com" (space instead of "+").
@posva Thanks for checking. Does only "+" produce spaces or any other special character as well?
I'm also not sure why it's expected that "+" produces spaces. If I e.g. try to go to https://firstname.lastname@example.org and type
A bit long to explain but this does it pretty well: https://stackoverflow.com/questions/1211229/in-a-url-should-spaces-be-encoded-using-20-or