{"action":"created","issue":{"url":"https://api.github.com/repos/slackhq/hubot-slack/issues/179","repository_url":"https://api.github.com/repos/slackhq/hubot-slack","labels_url":"https://api.github.com/repos/slackhq/hubot-slack/issues/179/labels{/name}","comments_url":"https://api.github.com/repos/slackhq/hubot-slack/issues/179/comments","events_url":"https://api.github.com/repos/slackhq/hubot-slack/issues/179/events","html_url":"https://github.com/slackhq/hubot-slack/issues/179","id":68240667,"number":179,"title":"msg.reply urlEscaping?","user":{"login":"omeganon","id":1200360,"avatar_url":"https://avatars.githubusercontent.com/u/1200360?v=3","gravatar_id":"","url":"https://api.github.com/users/omeganon","html_url":"https://github.com/omeganon","followers_url":"https://api.github.com/users/omeganon/followers","following_url":"https://api.github.com/users/omeganon/following{/other_user}","gists_url":"https://api.github.com/users/omeganon/gists{/gist_id}","starred_url":"https://api.github.com/users/omeganon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omeganon/subscriptions","organizations_url":"https://api.github.com/users/omeganon/orgs","repos_url":"https://api.github.com/users/omeganon/repos","events_url":"https://api.github.com/users/omeganon/events{/privacy}","received_events_url":"https://api.github.com/users/omeganon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/slackhq/hubot-slack/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/slackhq/hubot-slack/labels/possibly%20fixed%20in%20hubot-slack%20v4","name":"possibly fixed in hubot-slack v4","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-04-14T02:19:07Z","updated_at":"2016-06-29T20:32:26Z","closed_at":"2016-06-29T20:32:26Z","body":"Hi!\r\n\r\nI recently upgraded to the latest hubot-slack using the docs here. I've copied over my custom scripts and everything seems to be working as expected with one exception. We have a script that generates a very long URL and we send that to a channel using the http://my.long.address|shorttext convention to create a more human friendly link to click (https://api.slack.com/docs/formatting). It was working for the v2 integration but not for the latest install. The bot or adapter seems to be URL-escaping the entire string so the slack server doesn't recognize it as a | shortened url. Ex --\r\n\r\nCode: \r\n                    var finalURL = signupEndpoint + \"?Action=login\" + \"&Issuer=\" + encodeURIComponent(issuer) + \"&Destination=\" + encodeURIComponent(destination) + \"&SigninToken=\" + token + \"|https://my.signin.aws.amazon.com/console/read-only\"\r\n                    msg.reply(finalURL)\r\n\r\nResult in channel (highly redacted):\r\n https://signin.aws.amazon.com/federation?Action=login&Issuer=https%3A%2F%2F[redacted]%2Fconsole%2F&Destination=https%3A%2F%2Fconsole.aws.amazon.com%2Fconsole%2F&SigninToken=[redacted]%7Chttps://my.signin.aws.amazon.com/console/read-only\r\n\r\nExpectation:\r\nworking link with human visible text of 'https://my.signin.aws.amazon.com/console/read-only'\r\n\r\nI know I'm missing something but I can't figure out what it is. I've tried various permutations (spaces around, static URL, etc) but the result is the same.\r\n\r\nThanks in advance!"},"comment":{"url":"https://api.github.com/repos/slackhq/hubot-slack/issues/comments/229479234","html_url":"https://github.com/slackhq/hubot-slack/issues/179#issuecomment-229479234","issue_url":"https://api.github.com/repos/slackhq/hubot-slack/issues/179","id":229479234,"user":{"login":"DEGoodmanWilson","id":521866,"avatar_url":"https://avatars.githubusercontent.com/u/521866?v=3","gravatar_id":"","url":"https://api.github.com/users/DEGoodmanWilson","html_url":"https://github.com/DEGoodmanWilson","followers_url":"https://api.github.com/users/DEGoodmanWilson/followers","following_url":"https://api.github.com/users/DEGoodmanWilson/following{/other_user}","gists_url":"https://api.github.com/users/DEGoodmanWilson/gists{/gist_id}","starred_url":"https://api.github.com/users/DEGoodmanWilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DEGoodmanWilson/subscriptions","organizations_url":"https://api.github.com/users/DEGoodmanWilson/orgs","repos_url":"https://api.github.com/users/DEGoodmanWilson/repos","events_url":"https://api.github.com/users/DEGoodmanWilson/events{/privacy}","received_events_url":"https://api.github.com/users/DEGoodmanWilson/received_events","type":"User","site_admin":false},"created_at":"2016-06-29T20:32:26Z","updated_at":"2016-06-29T20:32:26Z","body":"Closed as resolved—you can't send links through the RTM API like this, as it happens. Will be even more fixed in v4."}}
{"actor":{"display_login":"DEGoodmanWilson"}}