# Homeyscript: Problem passing URL to tag

**URL:** <https://community.homey.app/t/homeyscript-problem-passing-url-to-tag/16988>\
**Category:** Apps\
**Created:** [August 17, 2019, 10:00pm UTC](https://community.homey.app/t/homeyscript-problem-passing-url-to-tag/16988 "2019-08-17T22:00:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Micke\_Lundgren](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/micke_lundgren/32/12404_2.png) [@Micke\_Lundgren](https://community.homey.app/u/Micke_Lundgren)\
**Post date:** [August 17, 2019, 10:00pm UTC](https://community.homey.app/t/homeyscript-problem-passing-url-to-tag/16988/1 "2019-08-17T22:00:55Z")

</div>

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](http://www.monkey.com)”);  
Works fine

await setTagValue(‘apa’, {type:‘url’, title: ‘Apa’}, “[http://www.monkey.com](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?  
Cheers!

---

<div class="post-metadata">

**Author:** ![Volleyoghurt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/volleyoghurt/32/3844_2.png) [@Volleyoghurt](https://community.homey.app/u/Volleyoghurt)\
**Post date:** [October 14, 2019, 10:15am UTC](https://community.homey.app/t/homeyscript-problem-passing-url-to-tag/16988/2 "2019-10-14T10:15:17Z")

</div>

Hello,

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](http://2Fwww.monkey.com)  
You can convert your link here: [https://www.urlencoder.io/](https://www.urlencoder.io/)

Greetings,

Bas
