I'm wondering how can I do that # character should not be ignored when executing an api call.. I tried to use encodeURI and encodeURIComponent but still gets ignored and the api it's returning the response like I didn't use # at all. I mention that all other characters like $@!~` are not ignored, only this one # . Any hint will be appreciated. The service looks like this:
service.getCarByCarNumber = async car_number => {
const carsReq = {
headers: fetchApi.newHeaderWithToken(CAR_JWT, SITE_ID)
};
const result = await instance.get(
`${API_GATEWAY_URL}${CAR_ENDPOINT}/carByNumber/${car_number}`,
carsReq
);
return formatCarSearchRes(car);
};