Get Firestore document with a "+" sign in the request

Hello,
I try to get a document in Firestore. In the path, there is an email address containing a “+” sign.

Document path is like :
/CollectionId/email+suffix@gmail.com

The module returns a 404 error (not found) but I can see that the request was made with
/CollectionId/email suffix@gmail.com
the plus sign has been changed into a space !!

Can you help me on this.
Thanks !!!

Hey there,

try escaping the plus sign, most likely Make is trying to interpret it as an actual function. You can try with the replace() function.

Thanks for your answer !
The problem is that I can see the plus sign in the Document Path of the input Bundle but for some reasons the firestore module changes the plus sign into space.
I tried escaping + with + but instead of returning a space, it returns a "\ " with a space instead of the plus sign and of course a 404 error !
May be there is a special way for escaping a plus sign in Make ?

Can you share a screenshot of the setup at the moment?



Hello !

As you can see, the plus sign is present in the input document path of firestore module but is replaced by a space → so it’s not found (it exists in the database)

If I enter test\+aperodujeudi@gmail.com I have test\ aperodujeudi@gmail.com not found

Any idea ?

Welcome to the Make Community!

That’s a reserved character in a URL. Hence there is the built-in function encodeURIComponent.

Or you can directly use %2B.

Hope this helps! Let me know if there are any further questions or issues.

@samliew

Hello,
Thanks for your answer.
I tried the %2B and encodeURL stuff but it says : test%2Baperodujeudi@gmail.com not found.
Firestore modile doesn’t decode %2B as a URL sign.

It’s not really acting like a URL and the plus sign is changed into space. I really don’t know what to do with that !! If you have others ideas ?