diff --git a/lib/v2/rsshub/routes.js b/lib/v2/rsshub/routes.js index 9a5770dab..a8ec2b72e 100644 --- a/lib/v2/rsshub/routes.js +++ b/lib/v2/rsshub/routes.js @@ -55,7 +55,7 @@ module.exports = async (ctx) => { return { title: `${h2Title.text().trim()} - ${h3Title.text().trim()}`, description: item.html(), - link: `https://docs.rsshub.app/${lang}routes/${type}#${encodeURIComponent(h2Title.find('.hash-link').attr('href') && h3Title.find('.hash-link').attr('href').substring(1))}`, + link: `https://docs.rsshub.app/${lang}routes/${type}#${encodeURIComponent(h2Title.find('.hash-link').attr('href') && h3Title.find('.hash-link').attr('href')?.substring(1))}`, guid: item.attr('id'), }; }),