diff --git a/src/components/RichText.js b/src/components/RichText.js index aeb686f3b4..308743e98d 100644 --- a/src/components/RichText.js +++ b/src/components/RichText.js @@ -5,9 +5,11 @@ import Markdown from './Markdown' function parseHTML(html) { return html.replace(/ { + const src = p1?.split('?')[0] + return match.replace( p1, - `${p1}?w=1280&q=80&fm=webp" width="1280" height="720"` + `${src}?w=1280&q=80&fm=webp" width="1280" height="720` ) }) } diff --git a/src/templates/ContentfulDownloadLayout.js b/src/templates/ContentfulDownloadLayout.js index a5ca05197f..5c52aec97d 100644 --- a/src/templates/ContentfulDownloadLayout.js +++ b/src/templates/ContentfulDownloadLayout.js @@ -68,7 +68,10 @@ const DownloadPage = props => { /> ) : null} - + {contentfulModuleToComponent({ ...footer, previewMode })} ) diff --git a/src/templates/ContentfulLayout.js b/src/templates/ContentfulLayout.js index 168356c495..a952ddcd44 100644 --- a/src/templates/ContentfulLayout.js +++ b/src/templates/ContentfulLayout.js @@ -138,7 +138,10 @@ const ContentfulLayout = props => { locale ) )} - + {contentfulModuleToComponent( { ...footer, isFaq: isFaqLayout, translation }, locale