From c51b5d9a5f217f8aa59c4bdcb04eb3c87f5129b3 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Mon, 23 May 2022 19:32:42 +0200 Subject: fix: ensure all topics/thematics have the base url --- src/services/graphql/articles.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/services/graphql/articles.ts') diff --git a/src/services/graphql/articles.ts b/src/services/graphql/articles.ts index f0ba4e4..27406ac 100644 --- a/src/services/graphql/articles.ts +++ b/src/services/graphql/articles.ts @@ -82,10 +82,10 @@ export const getArticleFromRawData = (data: RawArticle): Article => { title: seo?.title || '', }, thematics: acfPosts.postsInThematic?.map((thematic) => - getPageLinkFromRawData(thematic) + getPageLinkFromRawData(thematic, 'thematic') ), topics: acfPosts.postsInTopic?.map((topic) => - getPageLinkFromRawData(topic) + getPageLinkFromRawData(topic, 'topic') ), wordsCount: info.wordsCount, }, -- cgit v1.2.3