Copy Message Link uses the public channel route for private rooms and DMs

Open
#1,455 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@Vidit-001 is already working on this.

Since Nov 22, 2026.

  • #1456 by @Vidit-001 — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
30/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
javascript, react
Domain
frontend

Research direction

The issue already has an open pull request (#1456), so check that first before starting anything. If you still need the map: find the React message toolbox action that builds the copied URL, and compare how it derives the room name against the rooms.info shapes for public channels, private channels and DMs. Done when a private room yields /group/<name>/?msg=<id> and a nameless DM yields /direct/<rid>/?msg=<id>.

Written by the indexing model from the issue text.

Description

Description

The React message toolbox builds every copied message link under /channel/<name>. Rocket.Chat uses /group/<name> for private channels and /direct/<rid> for direct messages. DM room records can omit the name.

Steps to reproduce
  1. Open EmbeddedChat in a private channel using an account that can access the room.
  2. Open a message’s toolbox and select Copy Message Link.
  3. Paste the URL into a browser signed in to the workspace. Repeat with a direct message room if configured in the embed.
Expected behavior

The link uses the room’s route and includes the msg query parameter so Rocket.Chat can jump to the message.

Actual behavior

A private channel named team produces /channel/team/?msg=<id>. A DM room with no name produces /channel/undefined/?msg=<id>. I reproduced both outputs by running the copy handler with the corresponding rooms.info response shapes.

Dominant language
JavaScript
Stars
171
Forks
421
Avg merge
3d 6h
Merged PRs (30d)
4

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No 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.

More from RocketChat/EmbeddedChat

All issues in RocketChat/EmbeddedChat

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.