We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fc4ace commit 9306a8cCopy full SHA for 9306a8c
1 file changed
vis/js/templates/buttons/EmailButton.tsx
@@ -4,6 +4,11 @@ import { Button } from "react-bootstrap";
4
5
import useMatomo from "../../utils/useMatomo";
6
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.
12
const EmailButton = () => {
13
const title = encodeURIComponent(document.title);
14
const pageUrl = encodeURIComponent(window.location.href);
0 commit comments