elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.7k stars 8.12k forks source link

Adding support for email links in a URL template for fields in Discover #179773

Open JessicaGarson opened 5 months ago

JessicaGarson commented 5 months ago

A community Slack user is looking to format a field in the URL template to direct to an email link like mailto:youremail.com.

They tried adding mailto:{{value}} to the URL template, but it redirects to a link like https://my-deployment-kb.us-east-2.aws.found.io:93/app/mailto:e25%40yahoo.com. I think this is because we only support links that start with https:// .

elasticmachine commented 5 months ago

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

kertal commented 5 months ago

Has been asked before: https://github.com/elastic/kibana/issues/16983#issuecomment-1259994930

kertal commented 5 months ago

Currently whitelisted URL Schemas can be found here: https://github.com/elastic/kibana/blob/d06ee13ab83baba86a36ffd69fe6277f845a034c/src/core_plugins/kibana/common/field_formats/types/url.js#L5 On the surface it seems to be a low hanging fruit to add mailto: