diff --git a/search/IndexArchivedNews/mapper.test.ts b/search/IndexArchivedNews/mapper.test.ts index 1d6076e07..ca23d9be5 100644 --- a/search/IndexArchivedNews/mapper.test.ts +++ b/search/IndexArchivedNews/mapper.test.ts @@ -37,9 +37,7 @@ describe('fileStorage', () => { expect(res.topicTags).toEqual(['tag1', 'tag2', 'General news']) expect(res.countryTags).toEqual(['Norway']) expect(res.text).toEqual('A lot of \n content') - expect(res.thumbnailUrl).toEqual( - 'https://envisstoragedev.blob.core.windows.net/equinor-archive-content/link/to/url/of/image.png', - ) + expect(res.thumbnailUrl).toEqual('/link/to/url/of/image.png') }) }) diff --git a/search/IndexArchivedNews/mapper.ts b/search/IndexArchivedNews/mapper.ts index b852ab3a3..e5773aa06 100644 --- a/search/IndexArchivedNews/mapper.ts +++ b/search/IndexArchivedNews/mapper.ts @@ -33,6 +33,6 @@ export const mapData: MapDataType = (article) => { ], countryTags: [country.trim()].filter(identity), year, - thumbnailUrl: thumbnailURL ? `https://envisstoragedev.blob.core.windows.net/equinor-archive-content${thumbnailURL}` : null, + thumbnailUrl: thumbnailURL ? thumbnailURL : null, } as NewsIndex } diff --git a/web/templates/newsroom/NewsSections/NewsHeadliner.tsx b/web/templates/newsroom/NewsSections/NewsHeadliner.tsx index fe0f18eba..90169ed6b 100644 --- a/web/templates/newsroom/NewsSections/NewsHeadliner.tsx +++ b/web/templates/newsroom/NewsSections/NewsHeadliner.tsx @@ -26,16 +26,14 @@ const NewsHeadliner = forwardRef(function New {(heroImage?.image?.asset || fallbackImage || thumbnailUrl) && (
{thumbnailUrl ? ( -
- -
+ ) : ( (heroImage?.image?.asset || fallbackImage) && ( (function NewsItem( {(heroImage?.image?.asset || fallbackImage || thumbnailUrl) && ( <> {thumbnailUrl ? ( -
- -
+ ) : ( (heroImage?.image?.asset || fallbackImage) && (