Add /newsletter-confirmed double-opt-in confirmation page
Brevo's redirectionUrl now points here instead of the homepage — a static page matching /bestellbestaetigung's visual language (brand- tinted checkmark circle, serif display heading, thin brand divider). No query params to read; Brevo's confirmation redirect carries nothing this page needs. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
+1
-4
@@ -33,10 +33,7 @@ export async function upsertNewsletterContact(
|
||||
if (!apiKey || !listId || !templateId) {
|
||||
return { ok: false, reason: "BREVO_API_KEY/BREVO_LIST_ID/BREVO_DOUBLE_OPTIN_TEMPLATE_ID nicht konfiguriert." };
|
||||
}
|
||||
// No dedicated "danke, bestätigt" landing page exists yet — falls back
|
||||
// to the homepage rather than blocking double opt-in on that page
|
||||
// existing first. Revisit once one exists.
|
||||
const redirectionUrl = process.env.BREVO_DOI_REDIRECT_URL || "https://einfach-produktiv.mk360.de/";
|
||||
const redirectionUrl = process.env.BREVO_DOI_REDIRECT_URL || "https://einfach-produktiv.mk360.de/newsletter-confirmed";
|
||||
|
||||
try {
|
||||
const res = await fetch(BREVO_DOUBLE_OPTIN_URL, {
|
||||
|
||||
Reference in New Issue
Block a user