# Markdown link with current filter

**URL:** <https://discuss.elastic.co/t/markdown-link-with-current-filter/226245>\
**Category:** Kibana\
**Created:** [April 2, 2020, 3:42pm UTC](https://discuss.elastic.co/t/markdown-link-with-current-filter/226245 "2020-04-02T15:42:01Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![liorg2](https://avatars.discourse-cdn.com/v4/letter/l/ed8c4c/32.png) [@liorg2](https://discuss.elastic.co/u/liorg2)\
**Post date:** [April 2, 2020, 3:42pm UTC](https://discuss.elastic.co/t/markdown-link-with-current-filter/226245/1 "2020-04-02T15:42:01Z")

</div>

hello,

Is there an option to implement the following:  
a user finds an interesting case in Dashboard #1, after filtering to a timeframe of 10 minutes , click on a link (markdown?) to drill down the case in dashboard 2, and dashboard 2 opens up, already filtered to the same 10 minutes.

thanks!

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [April 2, 2020, 4:10pm UTC](https://discuss.elastic.co/t/markdown-link-with-current-filter/226245/2 "2020-04-02T16:10:43Z")

</div>

Yes, just create a markdown visualization with the link and place it on the dashboard.

Carrying over the time range is already the default behavior if you are just linking to the saved object id in the URL (without the long tail of `_a` and `_g`).

E.g. If this is your markdown:

```auto
[The other dashboard](/app/kibana#/dashboard/1eac8b60-73e9-11ea-a885-a914feebe655)

```

then the time range configured in the top right will be carried over if the link is clicked.

To also carry over set filter pills, you have to pin them from the context menu before clicking the link:  
 ![Screenshot 2020-04-02 at 18.09.16](https://us1.discourse-cdn.com/elastic/original/3X/d/1/d1d882d62eb1c0c4cc9153ed4d2f61d7a25a5aa4.png)

---

<div class="post-metadata">

**Author:** ![liorg2](https://avatars.discourse-cdn.com/v4/letter/l/ed8c4c/32.png) [@liorg2](https://discuss.elastic.co/u/liorg2)\
**Post date:** [April 2, 2020, 6:25pm UTC](https://discuss.elastic.co/t/markdown-link-with-current-filter/226245/3 "2020-04-02T18:25:12Z")

</div>

thanks a lot @flash1293

---

<div class="post-metadata">

**Author:** ![liorg2](https://avatars.discourse-cdn.com/v4/letter/l/ed8c4c/32.png) [@liorg2](https://discuss.elastic.co/u/liorg2)\
**Post date:** [April 2, 2020, 11:49pm UTC](https://discuss.elastic.co/t/markdown-link-with-current-filter/226245/4 "2020-04-02T23:49:46Z")

</div>

@flash1293

I did a small test:  
created a new dashboad, added a tsvb with a time series group by server.  
then created another dashboard: dashboard 2.  
I added markdown to dashboard 1, with a link to dashboard 2.  
the link works.

when adding a filter to dashboard 1: server:xx, and pin it (after that I saw the unpin label), and clicking the link as suggested, didn't persist it to dashboard 2.

then- I opened the dashboards list page, and went to dashboard 2 - the filter was there.  
any suggestion?

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [April 3, 2020, 8:05am UTC](https://discuss.elastic.co/t/markdown-link-with-current-filter/226245/5 "2020-04-03T08:05:10Z")

</div>

I just tried this and it worked fine for me. Which version are you running on? Also make sure to just link to the dashboard id without all of the parameters in the url.  
If this is your url

```auto
http://localhost:5301/app/kibana#/dashboard/1eac8b60-73e9-11ea-a885-a914feebe655?_a=(description:'',filters:!(),fullScreenMode:!f,options:(hidePanelTitles:!f,useMargins:!t),panels:!((embeddableConfig:(),gridData:(h:15,i:fcc540d6-bf64-484e-bf88-2792393f6e0e,w:24,x:0,y:0),id:'3ba638e0-b894-11e8-a6d9-e546fe2bba5f',panelIndex:fcc540d6-bf64-484e-bf88-2792393f6e0e,type:search,version:'8.0.0')),query:(language:kuery,query:''),timeRestore:!f,title:bbb,viewMode:view)&_g=(filters:!(('$state':(store:globalState),meta:(alias:!n,disabled:!f,index:ff959d40-b880-11e8-a6d9-e546fe2bba5f,key:category.keyword,negate:!f,params:(query:'Men!'s%20Clothing'),type:phrase),query:(match_phrase:(category.keyword:'Men!'s%20Clothing')))),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))

```

just link to

```auto
/app/kibana#/dashboard/1eac8b60-73e9-11ea-a885-a914feebe655

```

otherwise the pinned filters would get overridden by the URL.

---

<div class="post-metadata">

**Author:** ![liorg2](https://avatars.discourse-cdn.com/v4/letter/l/ed8c4c/32.png) [@liorg2](https://discuss.elastic.co/u/liorg2)\
**Post date:** [April 3, 2020, 1:34pm UTC](https://discuss.elastic.co/t/markdown-link-with-current-filter/226245/6 "2020-04-03T13:34:15Z")

</div>

Thats what I did. I'll double check

I had to add /s/SPACENAME/app/kibana  
As i have spaces. I hope it doesn't break it

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [April 3, 2020, 2:28pm UTC](https://discuss.elastic.co/t/markdown-link-with-current-filter/226245/7 "2020-04-03T14:28:39Z")

</div>

Ah, that's the problem. It won't work when switching between multiple spaces, just for within a single space. Unfortunately I can't think of a good workaround, I recommend putting all dashboards that are required for an investigation into a single space - switching between dashboards is also much faster that way.

---

<div class="post-metadata">

**Author:** ![liorg2](https://avatars.discourse-cdn.com/v4/letter/l/ed8c4c/32.png) [@liorg2](https://discuss.elastic.co/u/liorg2)\
**Post date:** [April 3, 2020, 4:49pm UTC](https://discuss.elastic.co/t/markdown-link-with-current-filter/226245/8 "2020-04-03T16:49:03Z")

</div>

No no, it should be a link to the same space

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [April 9, 2020, 1:06pm UTC](https://discuss.elastic.co/t/markdown-link-with-current-filter/226245/9 "2020-04-09T13:06:10Z")

</div>

As long as you stay in the same space, this should work fine. What Kibana version and what browser are you using?

---

<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:** [May 7, 2020, 1:17pm UTC](https://discuss.elastic.co/t/markdown-link-with-current-filter/226245/10 "2020-05-07T13:17:14Z")

</div>

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