Showing
1 changed file
with
1 additions
and
1 deletions
@@ -52,7 +52,7 @@ const _processPublicData = (req, title, page, backUrl) => { | @@ -52,7 +52,7 @@ const _processPublicData = (req, title, page, backUrl) => { | ||
52 | * @return {[type]} | 52 | * @return {[type]} |
53 | */ | 53 | */ |
54 | let index = (req, res, next) => { | 54 | let index = (req, res, next) => { |
55 | - let refer = req.get('Referer') || `${global.yoho.config.siteUrl}/${req.yoho.channel}`; | 55 | + let refer = req.get('Referer') || `${global.yoho.config.siteUrl}/${req.cookies._Channel || ''}`; |
56 | let reqPath = req.baseUrl + req.path; | 56 | let reqPath = req.baseUrl + req.path; |
57 | let backUrl = refer.indexOf(reqPath) === -1 ? refer : ''; | 57 | let backUrl = refer.indexOf(reqPath) === -1 ? refer : ''; |
58 | 58 |
-
Please register or login to post a comment