From d3bf5b3520379af138457a7188e0ccc44b254f9f Mon Sep 17 00:00:00 2001 From: justin Date: Sun, 31 May 2026 17:38:57 -0500 Subject: [PATCH] preview test send: keep {{ UnsubscribeURL }} (real link); hero 4-col to save vertical space - send_test no longer overwrites {{ UnsubscribeURL }} with a dead static URL; Listmonk renders it into a working per-subscriber unsubscribe link. - dot-compliance hero grid: 4 columns (minmax 150px, max-width 920px) instead of 3 to reduce vertical space. Co-Authored-By: Claude Opus 4.8 (1M context) --- scripts/build_trucking_campaigns.py | 4 +++- site/public/order/dot-compliance/index.html | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/build_trucking_campaigns.py b/scripts/build_trucking_campaigns.py index b486ccd..fd34a72 100644 --- a/scripts/build_trucking_campaigns.py +++ b/scripts/build_trucking_campaigns.py @@ -187,7 +187,9 @@ def send_test(base: dict, campaign_id: int, sample_row: tuple, label: str, tz: s body = body.replace("{{ .Subscriber.Attribs.company }}", name or "Sample Carrier LLC") body = body.replace("{{ .Subscriber.Attribs.dot_number }}", dot or "0000000") body = body.replace("{{ .Subscriber.Attribs.state }}", state or "TX") - body = body.replace("{{ UnsubscribeURL }}", "https://performancewest.net/unsubscribe") + # NOTE: leave {{ UnsubscribeURL }} alone — Listmonk renders it into a real, + # working per-subscriber unsubscribe link (even on test sends). Overwriting it + # produced a dead /unsubscribe link with no subscriber identity. subj = base["subject"].replace("{{ .Subscriber.Attribs.dot_number }}", dot or "0000000") # Listmonk /test needs `lists` as an array of IDs (base["lists"] is objects) list_ids = [l["id"] for l in base.get("lists", []) if isinstance(l, dict)] or [1] diff --git a/site/public/order/dot-compliance/index.html b/site/public/order/dot-compliance/index.html index 7604a1d..9a7e915 100644 --- a/site/public/order/dot-compliance/index.html +++ b/site/public/order/dot-compliance/index.html @@ -44,7 +44,7 @@ Sign out

We handle your FMCSA filings so you can focus on the road.

Performance West is a dedicated transportation compliance firm serving thousands of motor carriers nationwide. We combine deep regulatory expertise with purpose-built filing technology so your paperwork is done right, done fast, and tracked every step of the way.

-
+
📋
Specialized in trucking compliance