KamoCRM

Force email link clicks via capture-phase navigation

Fixkamo-internal
Shipped
28 மே, 2026 அன்று 11:50 PM UTC
Author
kamo
Commit
6f02b83

Reports show clicks on email-preview links silently doing nothing — hover shows the URL, no console errors, but the navigation never fires. That fingerprint points at an upstream listener swallowing the click with preventDefault before the browser can act on it. Mount a capture-phase document click listener whose only job is to detect clicks on anchors inside the email content. It runs before any other listener (capture > bubble), stops the original event with stopImmediatePropagation so nothing downstream can interfere, and performs the new-tab navigation itself by clicking a freshly-built off-DOM <a target=\"_blank\"> — native behaviour that popup blockers don't reject the way they reject window.open.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing