...
|
...
|
@@ -25,15 +25,23 @@ module.exports = () => { |
|
|
req.url = `/product/search/list?${querystring.stringify(req.query)}`;
|
|
|
}
|
|
|
break;
|
|
|
|
|
|
// 已经废弃,只是对老页面做兼容 --start
|
|
|
case 'sale': // sale 跳转到 m.yohobuy.com/product/sale
|
|
|
res.redirect(301, helpers.urlFormat('/product/sale', req.query, 'default'));
|
|
|
return;
|
|
|
case 'cart': // 购物车 跳转到 m.yohobuy.com/cart/index/index
|
|
|
res.redirect(301, helpers.urlFormat('/cart/index/index', req.query, 'default'));
|
|
|
return;
|
|
|
case 'new': // new.m.yohobuy.com 全部跳转到 m.yohobuy.com
|
|
|
res.redirect(301, helpers.urlFormat(req.path, req.query, 'default'));
|
|
|
return;
|
|
|
case 'item': // item.m.yohobuy.com 全部跳转到 m.yohobuy.com
|
|
|
res.redirect(301, helpers.urlFormat(req.path, req.query, 'default'));
|
|
|
return;
|
|
|
|
|
|
// 已经废弃,只是对老页面做兼容 --end
|
|
|
|
|
|
default: // 其它(识别为品牌)
|
|
|
if (req.path === '/') {
|
|
|
req.url = `/product/index/brand?domain=${req.subdomains[0]}`;
|
...
|
...
|
|