# How to pass current filters into the URL

**URL:** https://discuss.elastic.co/t/how-to-pass-current-filters-into-the-url/152560
**Category:** Kibana
**Created:** [October 15, 2018, 9:33pm UTC](https://discuss.elastic.co/t/how-to-pass-current-filters-into-the-url/152560 "2018-10-15T21:33:50Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![wheelq](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wheelq/32/35893_2.png) [@wheelq](https://discuss.elastic.co/u/wheelq)
#### Post date: [October 15, 2018, 9:33pm UTC](https://discuss.elastic.co/t/how-to-pass-current-filters-into-the-url/152560/1 "2018-10-15T21:33:50Z")

</div>

I have found cool feature in the Visual builder under the 'Top N'. If you go to the Panel Options, you can find the 'Item Url' where you can pass some data into the destination URL. This means I can create URLs with predefined filters based on what the user has clicked on the dashboard, for example:

?\_a=(query:(query\_string:(analyze\_wildcard:!t,query:'hostname.name:"{{{key}}}"')))

where the {{{key}}} is data being passed from the item user clicked on.

Now, my question is, how can I create similar behaviour using markdown. I would like to create a list of URL's users could click, which would redirect them to some other dashboards, but I'd like to pass some of the current filters into those URLs. Any ideas? Oh, I'm using session storage if that helps.

---

<div class="post-metadata">

### Author: ![wheelq](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wheelq/32/35893_2.png) [@wheelq](https://discuss.elastic.co/u/wheelq)
#### Post date: [October 31, 2018, 2:03pm UTC](https://discuss.elastic.co/t/how-to-pass-current-filters-into-the-url/152560/2 "2018-10-31T14:03:00Z")

</div>

any ideas?

---

<div class="post-metadata">

### Author: ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)
#### Post date: [November 2, 2018, 4:49pm UTC](https://discuss.elastic.co/t/how-to-pass-current-filters-into-the-url/152560/3 "2018-11-02T16:49:01Z")

</div>

@simianhacker - can u help here plz when u get sometime..

Thanks  
Rashmi

---

<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: [November 30, 2018, 4:49pm UTC](https://discuss.elastic.co/t/how-to-pass-current-filters-into-the-url/152560/4 "2018-11-30T16:49:14Z")

</div>

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