From 6ac9fddd91f26e6be8dadeadfa8324d39c01debf Mon Sep 17 00:00:00 2001 From: Mark McConnell Date: Mon, 4 Mar 2024 11:07:11 -0500 Subject: [PATCH] - Update pageName handling --- blocks/marketing/marketing.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocks/marketing/marketing.js b/blocks/marketing/marketing.js index a1150554..75173cbf 100644 --- a/blocks/marketing/marketing.js +++ b/blocks/marketing/marketing.js @@ -47,7 +47,7 @@ export default async function decorate(block) { pageName = 'homepage'; } else if (pageName.startsWith("news")) { pageName = 'news'; - } else { + } if (pageName.includes('/')) { pageName = pageName.substring(pageName.lastIndexOf('/') + 1); } window.tude.cmd.push(() => {