Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .yarn/cache/fsevents-patch-6b67494872-10.zip
Binary file not shown.
1 change: 0 additions & 1 deletion src/app/lib/config/toggles/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ yarn build:live:debug && yarn start
| `mostRead` | Display Most Read | | |
| `mostPopularMedia` | Display Most Popular Media (Most Watched) component on Media Asset (MAP) Pages | Number of most popular media items to display (integer between 1 and 20) | 10 |
| `nielsenAnalytics` | Capture Nielsen Analytics in Australia on AMP pages | | |
| `podcastEpisodeLinkedData` | Enable `PodcastEpisode` linked data on podcast episode pages | | |
| `preloadLeadImage` | Display preload image tag on Story (STY) Pages | | |
| `preroll` | Display Preroll Advertisements on Media Asset (MAP) Pages | | |
| `scriptLink` | Display Script Switching link for services with variants | | |
Expand Down
9 changes: 0 additions & 9 deletions src/app/lib/config/toggles/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ exports[`Toggles Config when application environment is live should contain corr
"onDemandRadioSchedule": {
"enabled": false,
},
"podcastEpisodeLinkedData": {
"enabled": false,
},
"podcastPromo": {
"enabled": false,
},
Expand Down Expand Up @@ -153,9 +150,6 @@ exports[`Toggles Config when application environment is local should contain cor
"onDemandRadioSchedule": {
"enabled": true,
},
"podcastEpisodeLinkedData": {
"enabled": true,
},
"podcastPromo": {
"enabled": true,
},
Expand Down Expand Up @@ -251,9 +245,6 @@ exports[`Toggles Config when application environment is test should contain corr
"onDemandRadioSchedule": {
"enabled": true,
},
"podcastEpisodeLinkedData": {
"enabled": true,
},
"podcastPromo": {
"enabled": true,
},
Expand Down
3 changes: 0 additions & 3 deletions src/app/lib/config/toggles/liveConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@ export default {
preroll: {
enabled: true,
},
podcastEpisodeLinkedData: {
enabled: false,
},
podcastPromo: {
enabled: false,
},
Expand Down
3 changes: 0 additions & 3 deletions src/app/lib/config/toggles/localConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ export default {
preroll: {
enabled: true,
},
podcastEpisodeLinkedData: {
enabled: true,
},
podcastPromo: {
enabled: true,
},
Expand Down
3 changes: 0 additions & 3 deletions src/app/lib/config/toggles/testConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@ export default {
preroll: {
enabled: true,
},
podcastEpisodeLinkedData: {
enabled: true,
},
podcastPromo: {
enabled: true,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import LinkedData from '#app/components/LinkedData';
import { ServiceContext } from '#app/contexts/ServiceContext';
import { RequestContext } from '#app/contexts/RequestContext';
import { ContentType } from '#app/components/ChartbeatAnalytics/types';
import useToggle from '#app/hooks/useToggle';
import ContinueReadingButton from '#app/components/ContinueReadingButton';
import styles from './index.styles';
import { OnDemandAudioProps } from './types';
Expand Down Expand Up @@ -56,15 +55,10 @@ const OnDemandAudioPage = ({
const { serviceName } = use(ServiceContext);
const { isLite, pathname, canonicalNonUkLink } = use(RequestContext);

const { enabled: showPodcastEpisodeLinkedData } = useToggle(
'podcastEpisodeLinkedData',
);

const isPodcastEpisodePage =
/\/podcasts\/(?!programmes\/)[^/]+\/[^/]+(?:\.lite)?$/.test(pathname);

const shouldEmitPodcastEpisodeSchema =
isPodcast && isPodcastEpisodePage && showPodcastEpisodeLinkedData;
const shouldEmitPodcastEpisodeSchema = isPodcast && isPodcastEpisodePage;

const episodeCanonicalUrl = canonicalNonUkLink;
const seriesCanonicalUrl = episodeCanonicalUrl.replace(
Expand Down
Loading
Loading