From 5a46d1edaf3fe72c17fe63b16d31584f6e962e58 Mon Sep 17 00:00:00 2001 From: KotaHv <92137267+KotaHv@users.noreply.github.com> Date: Thu, 26 May 2022 18:12:20 +0800 Subject: [PATCH] fix(route): Epic Games Store item link incorrect (#9822) * fix(route): Epic Games Store * fix(route): Epic Games Store item link incorrect --- lib/v2/epicgames/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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,