elastic / kibana

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

[FieldFormatters] Don't escape "&" in formatted urls #188975

Open jughosta opened 1 month ago

jughosta commented 1 month ago

Currently, & gets escaped and transformed into &amps; even when {{rawValue}} variable is used. This breaks the resulting urls. We should keep escape but exclude & if possible.

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

Example doc:

POST test-index/_doc
{
  "url": "https://example.com/?test=1&test2&test3"
}
elasticmachine commented 1 month ago

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