Authored by htoooth

fix

... ... @@ -33,17 +33,17 @@ module.exports = [
origin: /^\/p([\d]+).html(.*)/,
target: (req, match, p1, p2) => {
req.mobileUrl = `${MOBILE_DOMAIN}/product/pro_${p1}_1/1.html${p2 ? p2 : ''}`;
return `/product${req.url}`;
return helpers.urlFormat(`/product/${p1}.html${p2 ? p2 : ''}`, null, 'www');
}
},
// 商品详情页新链接
{
type: TYPE.rewrite,
type: TYPE.redirect,
origin: /^\/([\d]+).html(.*)/,
target: (req, match, p1, p2) => {
req.mobileUrl = `${MOBILE_DOMAIN}/product/${p1}.html${p2 ? p2 : ''}`;
return `/product${req.url}`;
return helpers.urlFormat(`/product${req.url}`, null, 'www');
}
}
];
... ...