The following document provides excellent tips for deep linking into the Discover app from within a Kibana plugin using a locator service.
The two main considerations are:
- Getting a proper base path
- Specifying state
I want to avoid hard-coding brittle URL's within our plugin's source code when linking out to:
Security > Hosts > Events
GitHub's README, in the link above, points to the source code for the Discover app's locator contract:
kibana > src > plugins > discover > public > locator.ts
However I can't find a plugin named "security" in the repository, perhaps that's because it's simply a core service? Is there any guidance for generating robust state to be used within the URL's name/value pairs, rather than embedding an HREF like this in our source code?