RocketChat / RocketChat/Rocket.Chat

Allow Customization of Message Links in Emails

Open
#11,458 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

While the majority of the email message can be customized, it seems the message links (aka "GO TO MESSAGE") are hard coded with the function referenced below.

https://github.com/RocketChat/Rocket.Chat/blob/develop/packages/rocketchat-lib/server/functions/notifications/email.js

Function getMessageLink

It would be great if this HTML could be customized like the header, footer, etc. Could use a token to implement the link within the HTML editor like we do for Site Name, Room Name, etc.

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 in packages/rocketchat-lib/server/functions/notifications/email.js and read getMessageLink alongside the existing email customization tokens for Site Name and Room Name. Determine how the message-link HTML could be exposed for customization, then verify that the email editor can use the new token and that the resulting link is rendered correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.