...
|
...
|
@@ -13,7 +13,7 @@ const newModel = require(`${mRoot}/new`); |
|
|
const searchModel = require(`${mRoot}/search`);
|
|
|
const _ = require('lodash');
|
|
|
const helpers = global.yoho.helpers;
|
|
|
const typeLib = require('../../../config/type-lib');
|
|
|
const qs = require('querystring');
|
|
|
|
|
|
// 新品到着(blk)
|
|
|
const blkNewGoods = (req, res, next) => {
|
...
|
...
|
@@ -81,7 +81,12 @@ const newGoods = (req, res, next) => { |
|
|
|
|
|
// 301到新路由
|
|
|
const newGoodsRedirect = (req, res) => {
|
|
|
res.redirect(`/product/${req.yoho.channel}-new/`);
|
|
|
let param = qs.stringify(req.query);
|
|
|
|
|
|
if (param) {
|
|
|
param = '?' + param;
|
|
|
}
|
|
|
res.redirect(`/product/${req.yoho.channel}-new/${param}`);
|
|
|
};
|
|
|
|
|
|
/**
|
...
|
...
|
|