diff --git a/helix-query.yaml b/helix-query.yaml index 403c7410..c420d865 100644 --- a/helix-query.yaml +++ b/helix-query.yaml @@ -87,6 +87,8 @@ indices: - /us/en/we-see-a-way/** exclude: - /us/en/we-see-a-way + - /us/en/we-see-a-way/solutions + - /us/en/we-see-a-way/solutions/** target: /us/en/wsaw-index.json properties: lastModified: diff --git a/tools/actions/convert/test/fixtures/addtionalstyle-test-converted.html b/tools/actions/convert/test/fixtures/addtionalstyle-test-converted.html index 40a3cfea..48e5e98d 100644 --- a/tools/actions/convert/test/fixtures/addtionalstyle-test-converted.html +++ b/tools/actions/convert/test/fixtures/addtionalstyle-test-converted.html @@ -33,10 +33,7 @@

Fast Driving Result


-
-

Innovative Technologies to Accelerate Identification of High-Quality Clones

-

View Event

-
+

Browse Catalog

@@ -68,6 +65,11 @@

Sign up for our newsletter

+
+
+
+
+
Title
diff --git a/tools/importer/transformers/cardList.js b/tools/importer/transformers/cardList.js index 2b9ce5f4..92c65084 100644 --- a/tools/importer/transformers/cardList.js +++ b/tools/importer/transformers/cardList.js @@ -1,11 +1,7 @@ /* global WebImporter */ const URLS_TO_BLOCK_MAP = [ { - url: '/we-see-a-way.html', - blockName: 'Card List (wsaw)', - }, - { - url: '/we-see-a-way/solutions/analytical-tools.html', + url: '/we-see-a-way', blockName: 'Card List (wsaw)', }, { @@ -41,7 +37,7 @@ const URLS_TO_BLOCK_MAP = [ const createCardList = (main, document) => { const url = document.querySelector('[property="og:url"]')?.content; if (url) { - const blockName = URLS_TO_BLOCK_MAP.find((item) => url.endsWith(item.url))?.blockName; + const blockName = URLS_TO_BLOCK_MAP.find((item) => url.endsWith(item.url) || url.includes(item.url))?.blockName; if (blockName) { const block = [[blockName], ['']]; WebImporter.DOMUtils.remove(main, ['h2', 'p']);