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?