Homeyscript: Problem passing URL to tag

I’m having an issue creating a tag containing a URL that includes “http://” for some funny reason.

await setTagValue(‘apa’, {type:‘url’, title: ‘Apa’}, “www.monkey.com”);
Works fine

await setTagValue(‘apa’, {type:‘url’, title: ‘Apa’}, “http://www.monkey.com”);
Returns empty - I can see it contains a value when assigning the tag but empty when i try to use it for example in a notification.

Any idea what might be the issue?


I’ve found a solution to your problem.
you need to use the HTML url encoding for you link.

for your situation it it: http%3A%2F%2Fwww.monkey.com
You can convert your link here: https://www.urlencoder.io/