Showing
2 changed files
with
3 additions
and
2 deletions
@@ -56,7 +56,7 @@ const _processPublicData = (req, title, page, backUrl) => { | @@ -56,7 +56,7 @@ const _processPublicData = (req, title, page, backUrl) => { | ||
56 | let index = (req, res, next) => { | 56 | let index = (req, res, next) => { |
57 | let refer = req.get('Referer') || `${global.yoho.config.siteUrl}/${req.cookies._Channel || ''}`; | 57 | let refer = req.get('Referer') || `${global.yoho.config.siteUrl}/${req.cookies._Channel || ''}`; |
58 | let reqPath = req.baseUrl + req.path; | 58 | let reqPath = req.baseUrl + req.path; |
59 | - let backUrl = refer.indexOf(reqPath) === -1 ? refer : ''; | 59 | + let backUrl = refer.indexOf(reqPath) === -1 && refer.indexOf('-sale') === -1 ? refer : ''; |
60 | 60 | ||
61 | if (['boys', 'girls', 'kids', 'lifestyle'].indexOf(req.yoho.channel) === -1) { | 61 | if (['boys', 'girls', 'kids', 'lifestyle'].indexOf(req.yoho.channel) === -1) { |
62 | return next(); | 62 | return next(); |
-
Please register or login to post a comment