Email Builder

Bug Report: Pasted Custom Values Auto-Link into URLs and Break
Summary Pasting custom values (e.g., {{contact.first_name}}) often auto-converts into a hyperlink. The link wraps the braces or part of the token. Result: the token no longer resolves. Teams waste time stripping links. Where It Happens Email builder (drag-and-drop + HTML modes). SMS composer. Workflow email/SMS steps. Notes/tasks and some input modals. Sometimes pipeline fields/descriptions. Impact Tokens fail to render for contacts. QA overhead. Risk of sending broken personalisation at scale. Frequent for users who paste from docs, Notion, or other emails. Steps to Reproduce Copy {{contact.first_name}} from an external doc. Paste into an email text block. Editor auto-detects a URL and wraps with <a href="…">. Send preview: value does not resolve. Actual Behaviour Token is partially or fully inside an <a> tag. Visual editor hides the anchor; HTML view shows it. Deleting the link sometimes also alters braces. Expected Behaviour Pasted strings matching {{ }} (or [[ ]] if used) should never auto-link. Smart-paste should preserve raw text without styling that breaks tokens. Proposed Fix A. Paste Guard (highest priority) When paste event fires, detect token patterns: Regex: \{\{[A-Za-z0-9._|-]+\}\} If match, strip all anchor/format tags around the token. Whitelist all known token syntaxes. B. Auto-Link Heuristic Update Suppress auto-link for strings containing { or }. Only link when a valid URL/Email regex matches the entire selection. C. Sanitiser on Save/Send Pre-send linter: flag tokens wrapped in <a> or other inline tags that alter braces. One-click “Fix Tokens” to unwrap. D. Editor UX Toggle: “Auto-link on paste” (default ON). Tooltip warning when a token is detected inside a link. Command palette: Unwrap tokens action. Backwards Compatibility / Safety Changes affect paste and pre-send only. No impact on existing, correctly formatted templates. Add analytics flag to track how often the linter fixes issues. Success Metrics ↓ token-related send errors. ↓ average edit time after paste. ↑ successful preview renders on first try. Attachments Will provide screenshot showing anchor wrapping the token. CTA: Want sample tokens and repro videos from Passivhaus HUB? I can supply a bundle to help QA verify across Emails, SMS, and Workflows.
0
Load More