Links with ampersand do not work in Slack iOS app
Open
Nobody has claimed this yet.
auto-triage-skip
bug
server-side-issue
- Dominant language
- TypeScript
- Stars
- 2.9k
- Forks
- 445
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 28
Description
@slack/bolt version
3.18.0
Node.js runtime version
v18.19.1
Steps to reproduce:
- Send a mrkdwn message with a link. For example:
const output = await client.chat.postMessage({
channel: '<channel id>',
text: 'Click this: <https://www.google.com/search?hl=en&q=chocolate+chip+cookies|Search Google>',
mrkdwn: true,
});
- in the slack mobile app, click on the link... it does not work. if you inspect the link you'll notice that the ampersand was encoded to
&
Expected result:
The link should work as expected
Actual result:
The link does not work
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how client.chat.postMessage handles mrkdwn links containing an ampersand, using the reproduction with the Google search URL and Slack iOS as the target behavior. Add regression coverage for the encoded link and confirm that the ampersand remains usable when the message is opened in the mobile app.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100