I want to echo
a clickable URL on ZSH/Terminal. The URL corresponds to a Kibana-query, which means it includes lots of funky characters. For technical reasons, I cannot use "shortened" Kibana links.
read -r the_url << \EOF
https://log-service.com/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-1h,to:now))&_a=(columns:!(correlation_id,application,level,description),filters:!(('$state':(store:appState),meta:(alias:!n,disabled:!f,index:'*:log-2',key:correlation_id,negate:!f,params:(query:hello-there),type:phrase),query:(match_phrase:(correlation_id:hello-again)))),index:'*:log-2',interval:auto,query:(language:kuery,query:''),sort:!(!('@timestamp',desc)))
EOF
echo "logs at:"
echo "$the_url"
The problem is: When I try to command-click the link, it is only partly interpreted as hyperlink. As a result, only part of the url is passed to the browser, and Kibana does not load properly. I am well below the 1000 characters URL-limit of some browsers.
Is there a way I can make ZSH + Terminal interpret my URL correctly?