...
|
...
|
@@ -56,7 +56,7 @@ const _processPublicData = (req, title, page, backUrl) => { |
|
|
let index = (req, res, next) => {
|
|
|
let refer = req.get('Referer') || `${global.yoho.config.siteUrl}/${req.cookies._Channel || ''}`;
|
|
|
let reqPath = req.baseUrl + req.path;
|
|
|
let backUrl = refer.indexOf(reqPath) === -1 ? refer : '';
|
|
|
let backUrl = refer.indexOf(reqPath) === -1 && refer.indexOf('-sale') === -1 ? refer : '';
|
|
|
|
|
|
if (['boys', 'girls', 'kids', 'lifestyle'].indexOf(req.yoho.channel) === -1) {
|
|
|
return next();
|
...
|
...
|
|