Variable placeholder fails with '/'

Am attempting to use environment variable substitution and am running into issues using a ‘/’ character in a destination string. I’m sure there is an obvious fix but can’t quite figure it out.

If I have an environment variable of:
destination: dev.myserver.com/v2
And have a route containing:
https://[$destination]/lte_unitupdate
I will get an error of:
error building route request: error creating new web request: parse "https://dev.myserver.com%2Fv2/lte_unitupdate": invalid URL escape "%2F"

I am sure I can make a workaround but is there a way to use the ‘/’ character in an environment variable substitution? Thanks.

Hi @szygmunt,

After some investigation it looks like this is a bug on the Notehub side that we will need to correct (thanks for pointing this out!). In the meantime, the best workaround would be to avoid using / in your environment variable and instead put it in the hardcoded URL specification for that route.

Thanks,
Rob