a3093
(Gonzalo)
November 30, 2022, 10:22am
1
CMK version: CRE 2.1.0p16
**OS version:**Centos7
URLs that contain ; do not work in “Notes URL for Hosts”.
For example OTRS URLs:
URL: https://myotrs/otrs/index.pl?Action=AgentITSMConfigItemZoom;ConfigItemID=374
On click it shows:
URL: https://myotrs/otrs/index.pl?Action=AgentITSMConfigItemZoom
Try to urlencode the semicolon ;
as %3B
, see Percent-encoding - Wikipedia
a3093
(Gonzalo)
December 2, 2022, 12:13pm
3
Hello Martin,
I had tried that but it doesn’t work either:
with %3B it doesn’t cut the URL but it doesn’t decode the URL to transform the code %3B back to ;
One solution may be to apply an unquote() function when calling the “Custom Notes” to decode the URL.
Example:
import urllib.parse
encodedStr = 'https://myotrs.com/otrs/index.pl?Action=AgentITSMConfigItemZoom%3BConfigItemID=371'
url = urllib.parse.unquote(encodedStr)
print(url) # https://myotrs.com/otrs/index.pl?Action=AgentITSMConfigItemZoom;ConfigItemID=371
a3093
(Gonzalo)
December 12, 2022, 8:36am
4
In CRE version 2.1.0p17 this problem continues.
system
(system)
Closed
December 12, 2023, 8:37am
5
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.