Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
fix(email): open links in new tab instead of navigating current tab (#2021)
Evan Hutnik1b7d0a311555
diff --git a/js/app/packages/block-email/component/EmailMessageBody.tsx b/js/app/packages/block-email/component/EmailMessageBody.tsxindex 55fb637252..0d00458a18 100644--- a/js/app/packages/block-email/component/EmailMessageBody.tsx+++ b/js/app/packages/block-email/component/EmailMessageBody.tsx@@ -125,6 +125,11 @@ export function EmailMessageBody(props: EmailMessageBodyProps) {shadow.appendChild(styleEl);const messageDiv = document.createElement('div');messageDiv.innerHTML = source()?.mainContent ?? '';+ // Open links in a new tab instead of navigating the current one+ for (const a of messageDiv.querySelectorAll('a[href]')) {+ a.setAttribute('target', '_blank');+ a.setAttribute('rel', 'noopener noreferrer');+ }messageDiv.style.userSelect = 'text';messageDiv.style.cursor = 'var(--cursor-auto)';messageDiv.style.overflow = 'auto';