Skip to content

Commit 9306a8c

Browse files
committed
feat: code documentation about email template creation
1 parent 1fc4ace commit 9306a8c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

vis/js/templates/buttons/EmailButton.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ import { Button } from "react-bootstrap";
44

55
import useMatomo from "../../utils/useMatomo";
66

7+
// This button currently builds email content from page metadata:
8+
// - subject <- document.title
9+
// - body <- meta[name="description"] + current URL
10+
// As a result, social/SEO metadata changes can also change email template. It is
11+
// also impossible to change the email template without changing the social/SEO metadata.
712
const EmailButton = () => {
813
const title = encodeURIComponent(document.title);
914
const pageUrl = encodeURIComponent(window.location.href);

0 commit comments

Comments
 (0)