# How to keep selected time when opening a link in a new tab?

**URL:** https://discuss.elastic.co/t/how-to-keep-selected-time-when-opening-a-link-in-a-new-tab/208483
**Category:** Kibana
**Created:** [November 19, 2019, 10:10am UTC](https://discuss.elastic.co/t/how-to-keep-selected-time-when-opening-a-link-in-a-new-tab/208483 "2019-11-19T10:10:25Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![asp](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@asp](https://discuss.elastic.co/u/asp)
#### Post date: [November 19, 2019, 10:10am UTC](https://discuss.elastic.co/t/how-to-keep-selected-time-when-opening-a-link-in-a-new-tab/208483/1 "2019-11-19T10:10:26Z")

</div>

Hi,

For easier navigation I use links in markdown visualization:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/5/e546ad438973294d76d1334b4c127798aa66e6a6.png)

code looks like this:

`method: [performance overview](#/dashboard/5daa37f0-0205-11ea-b4fd-8177e891c938) | [performance details](#/dashboard/b6f6dac0-0499-11ea-b63d-7166980bc184) | [status overview](#/dashboard/ffc5a260-0492-11ea-b4fd-8177e891c938)`

But when I click on the link it always opens with default time or time saved by dashbord (if dashboard has a saved timespan).

This issue occurs if I open in a **new tab**. If I open in the same tab, it is fine. The timespan stays there.

Thanks, Andreas

---

<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: [November 19, 2019, 11:17am UTC](https://discuss.elastic.co/t/how-to-keep-selected-time-when-opening-a-link-in-a-new-tab/208483/2 "2019-11-19T11:17:35Z")

</div>

Hi @asp,

thanks for your question. Unfortunately this is currently not possible.

The currently selected time range is stored in Javascript memory and in the url in the `?_g=` part of the hash. If you are doing a navigation in the same window, Kibana is able to restore the time range from Javascript memory. If you are opening a new tab though, the Kibana web app is started again from scratch and only has the hash URL parameter in the URL as a source - which is specified in the markdown vis itself and does not include the current `?_g=` part of the hash because it's statically defined. That's why Kibana in the new tab falls back to the default time or dashboard time.

I totally see your use case - if you want to feel free to create a [feature request](https://github.com/elastic/kibana/issues/new?template=Feature_request.md) in the Kibana Github repository.

---

<div class="post-metadata">

### Author: ![asp](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@asp](https://discuss.elastic.co/u/asp)
#### Post date: [November 19, 2019, 12:21pm UTC](https://discuss.elastic.co/t/how-to-keep-selected-time-when-opening-a-link-in-a-new-tab/208483/3 "2019-11-19T12:21:53Z")

</div>

thanks for your reply. I created following feature request:

> <https://github.com/elastic/kibana/issues/51025>
>
> Describe the feature:
> If I open a link via markdown visualization, I have the option to open the link in a new...

---

<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: [December 17, 2019, 12:21pm UTC](https://discuss.elastic.co/t/how-to-keep-selected-time-when-opening-a-link-in-a-new-tab/208483/4 "2019-12-17T12:21:59Z")

</div>

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