Question about Kibana Plugin Routing

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:

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

But, if I hard refresh and just load the url:

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?

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

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