diff --git a/lib/v2/epicgames/index.js b/lib/v2/epicgames/index.js index 9aad773ce..3a94bb079 100644 --- a/lib/v2/epicgames/index.js +++ b/lib/v2/epicgames/index.js @@ -30,7 +30,9 @@ module.exports = async (ctx) => { .map((item) => ({ title: item.title, author: item.seller.name, - link: `${rootUrl}/${locale}/p/${item.catalogNs.mappings.length > 0 ? item.catalogNs.mappings[0].pageSlug : item.offerMappings.length > 0 ? item.offerMappings[0].pageSlug : item.urlSlug}`, + link: `${rootUrl}/${locale}/p/${ + item.catalogNs.mappings.length > 0 ? item.catalogNs.mappings[0].pageSlug : item.offerMappings.length > 0 ? item.offerMappings[0].pageSlug : item.productSlug ? item.productSlug : item.urlSlug + }`, description: art(path.join(__dirname, 'templates/description.art'), { description: item.description, image: item.keyImages[0].url,