# How to pass data to custom plugin in Kibana

**URL:** <https://discuss.elastic.co/t/how-to-pass-data-to-custom-plugin-in-kibana/280139>\
**Category:** Kibana\
**Tags:** kibana-plugin-development\
**Created:** [August 1, 2021, 12:32am UTC](https://discuss.elastic.co/t/how-to-pass-data-to-custom-plugin-in-kibana/280139 "2021-08-01T00:32:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aza-zil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aza-zil/32/92217_2.png) [@aza-zil](https://discuss.elastic.co/u/aza-zil)\
**Post date:** [August 1, 2021, 12:32am UTC](https://discuss.elastic.co/t/how-to-pass-data-to-custom-plugin-in-kibana/280139/1 "2021-08-01T00:32:10Z")

</div>

I created a new plugin. on a button click, I want to redirect to the plugin page, I did that by doing the following:

```auto
const urlToplugin= "/app/myScheduler";
window.location.href = urlToplugin

```

, but I want to pass some data to the plugin. How can I do that?

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [August 3, 2021, 6:50pm UTC](https://discuss.elastic.co/t/how-to-pass-data-to-custom-plugin-in-kibana/280139/2 "2021-08-03T18:50:13Z")

</div>

A common way to do it is by storing the data in browser storage.

---

<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:** [August 31, 2021, 6:50pm UTC](https://discuss.elastic.co/t/how-to-pass-data-to-custom-plugin-in-kibana/280139/3 "2021-08-31T18:50:22Z")

</div>

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