# Vega encode URL with parameter in Mark Symbol href

**URL:** https://discuss.elastic.co/t/vega-encode-url-with-parameter-in-mark-symbol-href/115593
**Category:** Kibana
**Created:** [January 15, 2018, 7:09pm UTC](https://discuss.elastic.co/t/vega-encode-url-with-parameter-in-mark-symbol-href/115593 "2018-01-15T19:09:57Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![romanc](https://avatars.discourse-cdn.com/v4/letter/r/53a042/32.png) [@romanc](https://discuss.elastic.co/u/romanc)
#### Post date: [January 15, 2018, 7:09pm UTC](https://discuss.elastic.co/t/vega-encode-url-with-parameter-in-mark-symbol-href/115593/1 "2018-01-15T19:09:57Z")

</div>

I would like to have `href` defined on mark of type symbol in Vega plugin which will use URL to open other dashboard. So it should contain parameter from data set, e.g. `datum._source.parameter`.

How to encode such URL as a value for `href`?

I tried to do the following (URL is simplified just for the purposes of this topic):  
`"href": {"value": "https://+datum._source.parameter"}`  
But in that case the parameter in URL is not filled from data set.  
I tried also:  
`"href": {"signal": "https://+datum._source.parameter"}`  
And in that case I have error: `Expression parse error: "http://+datum._source.parameter"`

What should be the correct way?

---

<div class="post-metadata">

### Author: ![nyuriks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nyuriks/32/26171_2.png) [@nyuriks](https://discuss.elastic.co/u/nyuriks)
#### Post date: [January 16, 2018, 12:41pm UTC](https://discuss.elastic.co/t/vega-encode-url-with-parameter-in-mark-symbol-href/115593/2 "2018-01-16T12:41:56Z")

</div>

@romanc do you mean `signal: "'https://'+datum._source.parameter"` ?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [February 13, 2018, 12:42pm UTC](https://discuss.elastic.co/t/vega-encode-url-with-parameter-in-mark-symbol-href/115593/3 "2018-02-13T12:42:17Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
