...
|
...
|
@@ -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 {
|
...
|
...
|
|