From 3f1a53e930f766b57ad6e3fb079b9ef7fc3182ce Mon Sep 17 00:00:00 2001 From: Andvari <31068367+dzx-dzx@users.noreply.github.com> Date: Thu, 22 Feb 2024 20:52:08 +0800 Subject: [PATCH] fix(route/cna): Rectify link. (#14524) --- lib/v2/cna/web/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/v2/cna/web/index.js b/lib/v2/cna/web/index.js index c60da3e40b..d1538a85bc 100644 --- a/lib/v2/cna/web/index.js +++ b/lib/v2/cna/web/index.js @@ -20,7 +20,7 @@ module.exports = async (ctx) => { item = $(item); return { title: item.text(), - link: item.parents('a').attr('href'), + link: new URL(item.parents('a').attr('href'), 'https://www.cna.com.tw').href, pubDate: timezone(parseDate(item.next().text()), +8), }; });