I have a service where I make a GET request that does a search in the groups of my application, the problem is that the user created a group called #nome-do-grupo
, and when it will do the search by name and it puts the hash, error search because it has no way to send the hash to the request on the server.
I tried to use encodeURIComponent
but the search did not roll, I started to do a regex to remove the hashs from the string, but I would have to predict as many other characters as it can put so it was sendable.
If someone has already gone through this, how do you proceed in this case?