Problem with Make's automatic URL generation from an HTTP proxy and an API call

Here’s my problem :

In my Base, I have a URL like this: ‘https://proxi-api.entreprise/proxy?target=http://fac.wes/…’ and in my Modules, I complete it with ‘/queries/nodes?term={{parameters.term}}’.

Since my base URL has a ‘?’ to pass the ‘target’ parameter, Make transforms the ‘?’ in the modules into ‘&’, because it interprets it as a second parameter. But, it is the query parameters that will be executed in the proxy, and this creates an incorrect query.

Do you know of a way to prevent Make from doing this?

Welcome to the Make community!

If you need to preserve special characters, you can use the built-in function

The function may have also been covered in the Make Academy tutorials — refer to the Make Academy Course Overview for more info.

Here’s an example of how you can use the function:

{{ encodeURL(parameters.term) }}

(copy-paste the above into the field, or type it exactly as shown)

Hope this helps! Let me know if there are any further questions or issues. P.S.: investing some effort into the tutorials in the Make Academy will save you lots of time and frustration using Make!

@samliew