diff --git a/common/app/views/support/HtmlCleaner.scala b/common/app/views/support/HtmlCleaner.scala index a0d1fd0fe9c..6eb0e32a18b 100644 --- a/common/app/views/support/HtmlCleaner.scala +++ b/common/app/views/support/HtmlCleaner.scala @@ -960,23 +960,7 @@ object AffiliateLinksCleaner { pageUrl.substring(1); } else pageUrl - val affiliateLinksAllowList = List( - "lifeandstyle/2024/jan/03/six-winter-warmers-tried-and-tested-the-heated-poncho-has-changed-me-i-will-never-have-sex-again", - "lifeandstyle/2024/mar/11/im-south-asian-and-have-dark-eye-circles-what-can-i-do", - "fashion/2024/mar/08/the-four-makeup-staples-i-cant-live-without", - "travel/2023/mar/03/readers-favourite-budget-beach-campsites-hotels-in-europe", - "travel/2024/feb/25/10-of-the-best-places-in-the-uk-to-see-them-bloom", - "lifeandstyle/2023/dec/10/with-christmas-around-the-corner-what-to-give-the-gardener-in-your-life-", - "fashion/2024/mar/01/spring-is-around-the-corner-time-to-soothe-and-restore-your-cracked-heels", - "fashion/2024/mar/10/compact-and-bijou-why-women-need-a-pocket-mirror", - "fashion/2024/mar/03/how-to-reset-your-wardrobe-for-spring", - "lifeandstyle/2024/mar/03/beauty-spot-eyebrow-essentials-10-of-the-best", - "fashion/gallery/2024/mar/09/spring-in-your-step-10-menswear-trends-to-update-your-wardrobe-in-pictures", - "fashion/gallery/2024/mar/08/street-smart-what-to-wear-to-run-errands", - "fashion/gallery/2024/mar/09/the-edit-mens-sweatshirts-in-pictures", - "lifeandstyle/gallery/2024/jan/22/colourful-glass-furniture-from-vases-to-lampshades-in-pictures", - "lifeandstyle/gallery/2023/nov/27/cosy-bedding-in-pictures", - ) + val affiliateLinksAllowList = List() val urlIsInAllowList = affiliateLinksAllowList.contains(cleanedPageUrl) diff --git a/common/test/views/support/cleaner/AffiliateLinksCleanerTest.scala b/common/test/views/support/cleaner/AffiliateLinksCleanerTest.scala index 9205e868a94..b02e7ff18ab 100644 --- a/common/test/views/support/cleaner/AffiliateLinksCleanerTest.scala +++ b/common/test/views/support/cleaner/AffiliateLinksCleanerTest.scala @@ -19,7 +19,6 @@ class AffiliateLinksCleanerTest extends AnyFlatSpec with Matchers { val supportedSections = Set("film", "books", "fashion") val oldPublishedDate = Some(new DateTime(2020, 8, 13, 0, 0)) val newPublishedDate = Some(new DateTime(2020, 8, 15, 0, 0)) - val allowedPageUrl = "/fashion/gallery/2024/mar/08/street-smart-what-to-wear-to-run-errands" val deniedPageUrl = "/fashion/2024/feb/16/sunscreen-in-winter-yep-spf-moisturiser-is-essential-all-year-round" shouldAddAffiliateLinks( @@ -121,17 +120,6 @@ class AffiliateLinksCleanerTest extends AnyFlatSpec with Matchers { oldPublishedDate, deniedPageUrl, ) should be(true) - shouldAddAffiliateLinks( - switchedOn = true, - "fashion", - Some(true), - supportedSections, - Set.empty, - Set("bereavement"), - List("tech"), - newPublishedDate, - allowedPageUrl, - ) should be(true) shouldAddAffiliateLinks( switchedOn = true, "film",