Authored by 郭成尧

Merge branch 'feature/seo2' of git.yoho.cn:fe/yohobuywap-node into feature/seo2

... ... @@ -314,15 +314,19 @@ const indexRedirect = (req, res, next) => {
if (id) {
let redirectUrl = '/guang/';
if (req.yoho.channel !== req.cookies._Channel) {
redirectUrl += `${req.yoho.channel}-`;
}
// if (req.yoho.channel !== req.cookies._Channel) {
// redirectUrl += `${req.yoho.channel}-`;
// }
delete req.query.id;
delete req.query.channel;
let param = qs.stringify(req.query);
if (param) {
param = '?' + param;
}
redirectUrl += `${id}.html${param}`;
res.redirect(301, redirectUrl);
} else {
... ...