fix: display full URLs in workflow links (#26292)

- Exclude 'link' toolbar item from Editor for all workflow actions (not just SMS)
- Add replaceCloakedLinksInHtml utility to sanitize HTML and replace cloaked links with visible URLs
- Apply sanitization to email content before sending in all workflow email paths

This ensures recipients can see the actual destination of URLs, helping them identify potentially malicious links.

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Peer RichelsenandDevin AI authored and GitHub committed 2025-12-30 01:53:04 -03:00
1 parent ccc8c2b566
commit ec90c1ae24
6 files changed
+238 -8

No files matched your search

@@ -1381,7 +1381,7 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {
(hasActiveTeamPlan || isSMSAction(step.action))
}
excludedToolbarItems={
!isSMSAction(step.action) ? [] : ["blockType", "bold", "italic", "link"]
isSMSAction(step.action) ? ["blockType", "bold", "italic", "link"] : ["link"]
}
plainText={isSMSAction(step.action)}
/>