diff --git a/lib/routes/apnews/api.ts b/lib/routes/apnews/api.ts index f0edc8582bb5e3..22b60cbf6cc6cd 100644 --- a/lib/routes/apnews/api.ts +++ b/lib/routes/apnews/api.ts @@ -57,7 +57,7 @@ async function handler(ctx) { const list = res.cards .map((e) => ({ title: e.contents[0]?.headline, - link: e.contents[0]?.localLinkUrl, + link: e.contents[0]?.localLinkUrl ?? `https://apnews.com/${tags}-${e.contents[0]?.shortId}`, pubDate: timezone(parseDate(e.publishedDate), 0), category: e.tagObjs.map((tag) => tag.name), updated: timezone(parseDate(e.contents[0]?.updated), 0),