From 8ac0afefa90ed0cdd38dc438bb239d4ff6362bb5 Mon Sep 17 00:00:00 2001 From: Sheridan Sunier Date: Wed, 14 May 2025 10:28:50 -0700 Subject: [PATCH 1/2] MWPW-171937: fix cta urls for bulk publisher --- tools/send-to-caas/send-utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/send-to-caas/send-utils.js b/tools/send-to-caas/send-utils.js index ba85554cc0..7d62c2a103 100644 --- a/tools/send-to-caas/send-utils.js +++ b/tools/send-to-caas/send-utils.js @@ -362,7 +362,7 @@ const parseCardMetadata = () => { }; function checkCtaUrl(s, options, i) { - if (s?.trim() === '') return ''; + if ((s?.trim() === '' || s === undefined) && i > 1) return ''; const url = s || options.prodUrl || window.location.origin + window.location.pathname; return checkUrl(url, `Invalid Cta${i}Url: ${url}`); } From 551a951af32c6fbb2a15beca6399b2792746f2f2 Mon Sep 17 00:00:00 2001 From: Sheridan Sunier Date: Wed, 14 May 2025 10:44:47 -0700 Subject: [PATCH 2/2] MWPW-171937: fix cta urls for bulk publisher --- tools/send-to-caas/send-utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/send-to-caas/send-utils.js b/tools/send-to-caas/send-utils.js index 7d62c2a103..a10bab292b 100644 --- a/tools/send-to-caas/send-utils.js +++ b/tools/send-to-caas/send-utils.js @@ -362,7 +362,7 @@ const parseCardMetadata = () => { }; function checkCtaUrl(s, options, i) { - if ((s?.trim() === '' || s === undefined) && i > 1) return ''; + if (s?.trim() === '' || s === undefined) return ''; const url = s || options.prodUrl || window.location.origin + window.location.pathname; return checkUrl(url, `Invalid Cta${i}Url: ${url}`); }