{"action":"opened","issue":{"url":"https://api.github.com/repos/sni/Thruk/issues/505","labels_url":"https://api.github.com/repos/sni/Thruk/issues/505/labels{/name}","comments_url":"https://api.github.com/repos/sni/Thruk/issues/505/comments","events_url":"https://api.github.com/repos/sni/Thruk/issues/505/events","html_url":"https://github.com/sni/Thruk/issues/505","id":98185553,"number":505,"title":"A problem with parsing action menu items","user":{"login":"kbbl1977","id":7425230,"avatar_url":"https://avatars.githubusercontent.com/u/7425230?v=3","gravatar_id":"","url":"https://api.github.com/users/kbbl1977","html_url":"https://github.com/kbbl1977","followers_url":"https://api.github.com/users/kbbl1977/followers","following_url":"https://api.github.com/users/kbbl1977/following{/other_user}","gists_url":"https://api.github.com/users/kbbl1977/gists{/gist_id}","starred_url":"https://api.github.com/users/kbbl1977/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbbl1977/subscriptions","organizations_url":"https://api.github.com/users/kbbl1977/orgs","repos_url":"https://api.github.com/users/kbbl1977/repos","events_url":"https://api.github.com/users/kbbl1977/events{/privacy}","received_events_url":"https://api.github.com/users/kbbl1977/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-30T14:38:48Z","updated_at":"2015-07-30T14:38:48Z","closed_at":null,"body":"Hello,\r\nafter upgrade to thruk 2.00 my action menu does not work as on previous version (1.86-3 Centos x86_64 package)\r\nInstead of specified icon, only a warning icon appear with a warning text in title.\r\nThe warning text can be read in server log and goes like this:\r\n> [Thruk] error in action menu: , or } expected while parsing object/hash, at character offset 231 (before \":\"_blank\"},{\"icon\":\"...\") at /usr/share/thruk/lib/Thruk/Utils/Filter.pm line 452.`\r\n\r\nI've found this is caused by character `#` in a link URL\r\nwhole action menu item looks like this:\r\n> {\"icon\":\"/thruk/themes/{{theme}}/images/logos/some_icon.png\",\\\r\n> \"label\":\"Some Label\",\\\r\n> \"action\":\"https://some.domain/\\#/some/path/$HOSTNAME$\",\\\r\n> \"target\":\"_blank\"},\\\r\n\r\nThe `#` had to be escaped in thruk 1.86, however with thruk 2.00 this does dot work.\r\n\r\nI've already discussed that with colleagues and this far it is importanat, that url contain the `#` character.\r\n\r\nI also tried to do \"url-escaping\" of that character by defining\r\n> \"action\":\"https://some.domain/%23/some/path/$HOSTNAME$\",\\\r\n\r\nthe browser displayed the link correctly with `#` character, but after clicking the link, the URL bar just displayed url exactly with `%23` string and link did not work.\r\n\r\nIs there any other way to escape that particular character?\r\n\r\nMany thanks for help\r\nTomas Novosad"}}