# Syntax for item URL to redirect to another dashboard

**URL:** <https://discuss.elastic.co/t/syntax-for-item-url-to-redirect-to-another-dashboard/185752>\
**Category:** Kibana\
**Created:** [June 14, 2019, 2:59am UTC](https://discuss.elastic.co/t/syntax-for-item-url-to-redirect-to-another-dashboard/185752 "2019-06-14T02:59:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![TsuWeiQuan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsuweiquan/32/46252_2.png) [@TsuWeiQuan](https://discuss.elastic.co/u/TsuWeiQuan)\
**Post date:** [June 14, 2019, 2:59am UTC](https://discuss.elastic.co/t/syntax-for-item-url-to-redirect-to-another-dashboard/185752/1 "2019-06-14T02:59:55Z")

</div>

Hello,  
How can I edit the item URL to redirect onclick URL to the correct dashboard?  
Currently, it is redirecting back to the default summary page of the host but I have a new dashboard for each host.  
I would like to redirect to my configured dashboard after clicking the metric.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/4/f462ebe291f5f0bb7fdfaf81fe5fac069183feaa.png)

How can i edit the item url to achieve the result i want?

---

<div class="post-metadata">

**Author:** ![markov00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markov00/32/33316_2.png) [@markov00](https://discuss.elastic.co/u/markov00)\
**Post date:** [June 27, 2019, 3:30pm UTC](https://discuss.elastic.co/t/syntax-for-item-url-to-redirect-to-another-dashboard/185752/2 "2019-06-27T15:30:30Z")

</div>

Hey @TsuWeiQuan,  
If I understood correctly your request, you want to open a different dashboard on a different kibana host when clicking on each single the Top N bar.  
If I'm correct you are currently looking for this:

- clicking on NUSSERVER will redirect to [http://NUSSERVER/app/kibana/dashboard/123](http://NUSSERVER/app/kibana/dashboard/123)
- clicking on ITSYS2 will redirect to [http://ITSYS2/app/kibana/dashboard/123](http://ITSYS2/app/kibana/dashboard/123)  
etc  
I'm I correct?

If so you can specify the `item URL` as the following:  
`http://{{key}}/app/kibana/dashboard/123`

The `key` field is the field displayed on that visualization that correspond to your hosts.  
The only drawback is that you can specify only one URL and one dashboard id for every kibana host.

---

<div class="post-metadata">

**Author:** ![TsuWeiQuan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsuweiquan/32/46252_2.png) [@TsuWeiQuan](https://discuss.elastic.co/u/TsuWeiQuan)\
**Post date:** [June 28, 2019, 10:35am UTC](https://discuss.elastic.co/t/syntax-for-item-url-to-redirect-to-another-dashboard/185752/3 "2019-06-28T10:35:30Z")

</div>

Thank you for the reply mark.

I think you mis-understood my question. I would like to open a different dashboard on the same kibana host when clicking on each single hostname on the Top N Bar chart.

Where

- clicking on NUSSERVER will redirect to [http://10.106.95.1/app/kibana/dashboard/nusserver-dashboard](http://nusserver/app/kibana/dashboard/123)
- clicking on ITSYS2 will redirect to [http://10.106.95.1/app/kibana/dashboard/itsys2-dashboard](http://itsys2/app/kibana/dashboard/123)

I was wondering if Kibana could do this?

---

<div class="post-metadata">

**Author:** ![markov00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markov00/32/33316_2.png) [@markov00](https://discuss.elastic.co/u/markov00)\
**Post date:** [June 28, 2019, 11:09am UTC](https://discuss.elastic.co/t/syntax-for-item-url-to-redirect-to-another-dashboard/185752/4 "2019-06-28T11:09:19Z")

</div>

Unfortunately this is not possible right now.  
The moustache templating system doesn't allows you to do any `switch` or `if` with a statement like  
`if key == NUSSERVER than use this URL else render this other URL`

The only way I think it could work is to use VEGA, that will allows you to control much better the visualization and handle clicks, but it has an initial learning curve [https://www.elastic.co/blog/getting-started-with-vega-visualizations-in-kibana](https://www.elastic.co/blog/getting-started-with-vega-visualizations-in-kibana)

We are already working on including the possibility to drill down or switch between dashboards, but it can takes some time unfortunately.  
In the meantime it will be great if you can create a feature request here [https://github.com/elastic/kibana/issues/new?template=Feature\_request.md](https://github.com/elastic/kibana/issues/new?template=Feature_request.md)

---

<div class="post-metadata">

**Author:** ![TsuWeiQuan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsuweiquan/32/46252_2.png) [@TsuWeiQuan](https://discuss.elastic.co/u/TsuWeiQuan)\
**Post date:** [July 1, 2019, 12:38am UTC](https://discuss.elastic.co/t/syntax-for-item-url-to-redirect-to-another-dashboard/185752/5 "2019-07-01T00:38:58Z")

</div>

Alright, thank you! I will look into VEGA 🙂

---

<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:** [July 29, 2019, 12:39am UTC](https://discuss.elastic.co/t/syntax-for-item-url-to-redirect-to-another-dashboard/185752/6 "2019-07-29T00:39:00Z")

</div>

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