From 84a710fdfc047d93040deff94dc8312fdb5f9707 Mon Sep 17 00:00:00 2001 From: hoilc Date: Thu, 27 Feb 2020 00:38:04 +0800 Subject: [PATCH] fix: xjtu dean url (#4086) --- lib/routes/universities/xjtu/dean.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/universities/xjtu/dean.js b/lib/routes/universities/xjtu/dean.js index f753678d99..b519e14a99 100644 --- a/lib/routes/universities/xjtu/dean.js +++ b/lib/routes/universities/xjtu/dean.js @@ -56,7 +56,7 @@ module.exports = async (ctx) => { const $ = cheerio.load(item); const title = $('a'); - const link = new URL(title.attr('href'), base); + const link = new URL(title.attr('href'), base).href; const cache = await ctx.cache.get(link); if (cache) {