When including {{context.link}} in an email to inform about errors in our application logs we get an issue with the value of context.link seem to get too long when adding some filters to filter out specific log posts. The error we get is:
If you click "Show details" you get this error:
Error: Locator params not specified. Specify "p" search parameter in the URL, which should be JSON serialized object of locator params.
at https://<hostname>/d4d06bdf0d1d/bundles/plugin/share/1.0.0/share.plugin.js:2:27529
at redirect_manager_RedirectManager.parseSearchParams (https://<hostname>/d4d06bdf0d1d/bundles/plugin/share/1.0.0/share.plugin.js:2:28010)
at redirect_manager_RedirectManager.onMount (https://<hostname>/d4d06bdf0d1d/bundles/plugin/share/1.0.0/share.plugin.js:2:25118)
at Object.mount (https://<hostname>/d4d06bdf0d1d/bundles/plugin/share/1.0.0/share.plugin.js:2:24165)
at async https://<hostname>/d4d06bdf0d1d/bundles/core/core.entry.js:1:100139
The above error occurred in D:
at c (https://<hostname>/d4d06bdf0d1d/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:67:183485)
...
To me this looks like the lookup from the URL generated by context.link is getting too long so not all information needed for the link is included. It was obvious when we used Kibana/Elastic v7 since the explicit URL was included in the mail we sent out and Outlook complained about the url being too long. Now we're using version 8.13.2 and the link in context.link seem to be encoded which is later on resolved and it's at this point it fails.
Any way to work around this or how to handle this issue?