diff --git a/lib/routes/dlsite/campaign.js b/lib/routes/dlsite/campaign.js index cbb85b6c3b..9d4afd03eb 100644 --- a/lib/routes/dlsite/campaign.js +++ b/lib/routes/dlsite/campaign.js @@ -104,18 +104,18 @@ const infos = { }, }; const setUrl = (info) => { - let paramsPath = `${info.url}/=`; + let paramsPath = `${info.url}/=/`; const params = info.params; for (const name in params) { if (Array.isArray(params[name])) { for (const index in params[name]) { - paramsPath += `${name}[${index}]/${params[name][index]}`; + paramsPath += `${name}[${index}]/${params[name][index]}/`; } } else { - paramsPath += `${name}/${params[name]}`; + paramsPath += `${name}/${params[name]}/`; } } - return paramsPath; + return paramsPath.slice(1); }; module.exports = async (ctx) => { @@ -167,7 +167,7 @@ module.exports = async (ctx) => { ctx.state.data = { title: title, - link: link, + link: `${host}/${link}`, description: description, language: 'ja-jp', allowEmpty: true,