From 8c8f4a594b573c43b6b7a05e1e17ccf553be55bf Mon Sep 17 00:00:00 2001 From: "Monst.x" Date: Sun, 2 Aug 2020 03:05:39 +0800 Subject: [PATCH] fix: OneJAV Radar path (#5298 Patch) (#5329) --- assets/radar-rules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/radar-rules.js b/assets/radar-rules.js index 9af4dc418..455bebe9c 100644 --- a/assets/radar-rules.js +++ b/assets/radar-rules.js @@ -1952,7 +1952,7 @@ source: ['/:type', '/:type/:key', '/:type/:key/:morekey'], target: (params, url, document) => { const itype = params.morekey === undefined ? `${params.type}` : params.type === 'tag' ? 'tag' : 'day'; - let ikey = `${itype === 'day' ? params.type : ''}${params.key || ''}${params.morekey || ''}`; + let ikey = `${itype === 'day' ? params.type : ''}${params.key || ''}${itype === 'tag' && params.morekey !== undefined ? '%2F' : ''}${params.morekey || ''}`; if (ikey === '' && itype === 'tag') { ikey = document.querySelector('div.thumbnail.is-inline > a').getAttribute('href').replace('/tag/', '').replace('/', '%2F'); } else if (ikey === '' && itype === 'actress') {