# How to keep router updated with history?

**URL:** https://discuss.elastic.co/t/how-to-keep-router-updated-with-history/335779
**Category:** Kibana
**Tags:** kibana-plugin-development
**Created:** [June 12, 2023, 2:14pm UTC](https://discuss.elastic.co/t/how-to-keep-router-updated-with-history/335779 "2023-06-12T14:14:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Sheereen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sheereen/32/122005_2.png) [@Sheereen](https://discuss.elastic.co/u/Sheereen)
#### Post date: [June 12, 2023, 2:14pm UTC](https://discuss.elastic.co/t/how-to-keep-router-updated-with-history/335779/1 "2023-06-12T14:14:11Z")

</div>

Hi,

I am using react-router-dom v6. I am creating a custom plugin in react, and is trying to implement routing (navigation between ui pages).

As per this documentation ([Routing, Navigation and URL | Kibana Guide [8.8] | Elastic](https://www.elastic.co/guide/en/kibana/current/kibana-navigation.html#routing)), we have to keep the **router updated with history.**

As per this document, I have to pass **history from core to Router** ([kibana/application.tsx at 8.8 · elastic/kibana · GitHub](https://github.com/elastic/kibana/blob/8.8/test/plugin_functional/plugins/core_plugin_a/public/application.tsx#L120)). But, for recent versions of react-router-dom (I am using v6), **Router doesn't have history prop.**

Thanks

---

<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 10, 2023, 2:14pm UTC](https://discuss.elastic.co/t/how-to-keep-router-updated-with-history/335779/2 "2023-07-10T14:14:33Z")

</div>

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