elastic / kibana

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

[FieldFormatters] Add support for {{rawValue}} in URL label template #188973

Open jughosta opened 4 months ago

jughosta commented 4 months ago

When defining a URL template, it's possible to use {{rawValue}} for unescaped value. But if {{rawValue}} is entered into Label template input, it results in missing label for the link.

Current workaround is to use {{value}} variable for the link label:

Screenshot 2024-07-23 at 17 01 02

But it's confusing that {{rawValue}} variable is not available for the label template and {{value}} works as {{rawValue}}.

https://github.com/elastic/kibana/blob/f388d991caac20222a73dc62811df0d4d2b602a8/src/plugins/field_formats/common/converters/url.ts#L80-L99

elasticmachine commented 4 months ago

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