Thanks for all your input. I will add percent encoding to the URL.
In case any other Kibana users stumble upon this, I have written this text-expander code to replace characters while placing in Obsidian
function urlEncodeObsidian(urlString) {
const url = new URL(urlString);
url.hash =
"#" +
url.hash.slice(1).replace(/[!'()*]/g, function (c) {
return "%" + c.charCodeAt(0).toString(16);
});
return url.href;
}
urlEncodeObsidian("%clipboard");
Escape logic is from this stack overflow answer
This one only works with url hash, but I think it can be improved to add support for special characters in path also.
I also tried with (
style encoding which works for showing on Obsidian, but the URL is different enough that Kibana does not recognise it.