From 3036d3594079dec5f5c7f3edb3a91f80aae4a8dc Mon Sep 17 00:00:00 2001 From: LionelB Date: Mon, 29 Mar 2021 16:06:40 +0200 Subject: [PATCH] fix(ingester): allow url for external doc --- .../src/fetchCdtnAdminDocuments.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shared/elasticsearch-document-adapter/src/fetchCdtnAdminDocuments.js b/shared/elasticsearch-document-adapter/src/fetchCdtnAdminDocuments.js index 5876863ea..ef11eb883 100644 --- a/shared/elasticsearch-document-adapter/src/fetchCdtnAdminDocuments.js +++ b/shared/elasticsearch-document-adapter/src/fetchCdtnAdminDocuments.js @@ -208,12 +208,13 @@ function toRefs(contentRelations, getBreadcrumbs) { ({ position: positionA }, { position: positionB }) => positionA - positionB ) - .map(({ content: { cdtnId, document, slug, source, title } }) => ({ + .map(({ content: { cdtnId, document, slug, source, title, url } }) => ({ breadcrumbs: getBreadcrumbs(cdtnId), cdtnId, description: document.description, slug, source, title, + url, })); }