# Question about Kibana Plugin Routing

**URL:** https://discuss.elastic.co/t/question-about-kibana-plugin-routing/143582
**Category:** Kibana
**Created:** [August 8, 2018, 7:19pm UTC](https://discuss.elastic.co/t/question-about-kibana-plugin-routing/143582 "2018-08-08T19:19:42Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![123](https://avatars.discourse-cdn.com/v4/letter/1/7feea3/32.png) [@123](https://discuss.elastic.co/u/123)
#### Post date: [August 8, 2018, 7:19pm UTC](https://discuss.elastic.co/t/question-about-kibana-plugin-routing/143582/1 "2018-08-08T19:19:42Z")

</div>

I'm making a Kibana React plugin.

During development I see it's at localhost:5601/abc/app/pluginname

Inside my plugin I have react-router being used to route to different views/components. It works fine such as:

If I go to above link and then click a I'll be routed to:  
localhost:5601/abc/app/pluginname/topics

And I'll see the component with path="/topics" rendered.

But, if I hard refresh and just load the url:  
localhost:5601/abc/app/pluginname/topics

I want it to load my pluginname plugin and then figure out the routes, but I'm getting a 404 Not Found. I'm guessing it's trying to find a plugin called pluginname/topics. How do I fix this?

---

<div class="post-metadata">

### Author: ![123](https://avatars.discourse-cdn.com/v4/letter/1/7feea3/32.png) [@123](https://discuss.elastic.co/u/123)
#### Post date: [August 8, 2018, 8:39pm UTC](https://discuss.elastic.co/t/question-about-kibana-plugin-routing/143582/2 "2018-08-08T20:39:35Z")

</div>

Was able to use HashRouter instead of BrowserRouter and it works.

---

<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: [September 5, 2018, 8:39pm UTC](https://discuss.elastic.co/t/question-about-kibana-plugin-routing/143582/3 "2018-09-05T20:39:35Z")

</div>

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