Amends the AMP and externalEmbedUrl URLs for Optimo Articles av-embeds to use the parentPID value, rather than versionPID when requesting a media asset. The BFF can handle either the parentPID or versionPID, and in these cases using the parentPID should somewhat help resolve requests for media assets that no longer exist
Code changes
Passes new parentPID param into AMP and external URL constructors, using this value for Optimo Articles only
Resolves JIRA [number]
Overall changes
externalEmbedUrl
URLs for Optimo Articles av-embeds to use theparentPID
value, rather thanversionPID
when requesting a media asset. The BFF can handle either theparentPID
orversionPID
, and in these cases using theparentPID
should somewhat help resolve requests for media assets that no longer existCode changes
parentPID
param into AMP and external URL constructors, using this value for Optimo Articles onlyTesting
https://web-cdn.api.bbci.co.uk
- https://github.com/bbc/simorgh/blob/cbee84c9bbca7eab30c898d795a4e69f901065ac/src/app/components/MediaLoader/utils/urlConstructors.ts#L8Helpful Links
Add Links to useful resources related to this PR if applicable.
Coding Standards
Repository use guidelines