From e02217aa957dcb434759c0a7058c42d31220290e Mon Sep 17 00:00:00 2001 From: DerekCao Date: Tue, 8 May 2018 16:38:20 +0800 Subject: [PATCH] update zhihu collection link to answer page instead of question page update reason: To make it easier to directly locate the answer page and read its comments. --- routes/zhihu/collection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/zhihu/collection.js b/routes/zhihu/collection.js index fccd22fff..2f0dbecfa 100644 --- a/routes/zhihu/collection.js +++ b/routes/zhihu/collection.js @@ -25,7 +25,7 @@ module.exports = async (ctx) => { description: `${$('#zh-fav-head-description').text()}`, item: list && list.map((index, item) => { item = $(item); - let linkUrl = item.find('.zm-item-title a').attr('href'); + let linkUrl = item.find('link').attr('href'); if (linkUrl.startsWith('/')) linkUrl = 'https://www.zhihu.com' + linkUrl; return { title: item.find('.zm-item-title a').text(),