slackapi / slackapi/bolt-js

Links with ampersand do not work in Slack iOS app

Open
#2,103 8 comments 3 reactions 0 assignees View on GitHub

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:
  1. 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,
});
  1. 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 &amp;
Expected result:

The link should work as expected

Actual result:

The link does not work

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.