Skip to content

Commit

Permalink
Merge pull request #12624 from guardian/exclude-thefilter-amp
Browse files Browse the repository at this point in the history
Exclude the filter articles from amp
  • Loading branch information
DanielCliftonGuardian authored Oct 22, 2024
2 parents a971f68 + b488b94 commit e056f54
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dotcom-rendering/src/components/Elements.amp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,13 @@ export const isAmpSupported = ({
if (!hasAmpInteractiveTag) return false;
}

if (tags.some((tag) => tag.id === 'type/video')) {
if (
tags.some(
(tag) =>
tag.id === 'type/video' ||
tag.id === 'thefilter/series/the-filter',
)
) {
return false;
}

Expand Down

0 comments on commit e056f54

Please sign in to comment.