Skip to content

Commit 17939b2

Browse files
authored
Use more stories as the onwards container for uk culture (#14332)
* Use more stories as the onwards container for uk culture * Clean the title so that we don't repeat the word "More" in the "More from " header
1 parent 1e910f6 commit 17939b2

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

dotcom-rendering/src/components/Carousel.importable.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,10 @@ const getDataLinkNameCarouselButton = (
425425
return `${isVideoContainer ? 'video-container' : arrowName}-${direction}`;
426426
};
427427

428+
const cleanTitle = (title: string) => {
429+
return title.replace('More', '').trimStart();
430+
};
431+
428432
const Title = ({
429433
title,
430434
isCuratedContent,
@@ -453,7 +457,9 @@ const Title = ({
453457
) : (
454458
<h2 css={headerStyles}>
455459
{isCuratedContent ? 'More from ' : ''}
456-
<span css={titleStyle(isCuratedContent)}>{title}</span>
460+
<span css={titleStyle(isCuratedContent)}>
461+
{isCuratedContent ? cleanTitle(title) : title}
462+
</span>
457463
</h2>
458464
);
459465

dotcom-rendering/src/components/OnwardsUpper.importable.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ const containerUrls = {
103103
EUR: 'uk/commentisfree/regular-stories',
104104
},
105105
culture: {
106-
UK: 'uk/culture/regular-stories',
106+
UK: '2771a8ab-952a-4bbc-9aa0-6863fed77712',
107107
US: 'us/culture/regular-stories',
108108
AU: 'au/culture/regular-stories',
109-
INT: 'uk/culture/regular-stories',
110-
EUR: 'uk/culture/regular-stories',
109+
INT: '2771a8ab-952a-4bbc-9aa0-6863fed77712',
110+
EUR: '2771a8ab-952a-4bbc-9aa0-6863fed77712',
111111
},
112112
lifestyle: {
113113
UK: '5011-3940-8793-33a9',

0 commit comments

Comments
 (0)