Authored by 郭成尧

canonical

... ... @@ -248,6 +248,9 @@ const category = (req, res, next) => {
_noLazy: true, // 首屏不使用lazyload
module: 'product',
page: 'search-list',
canonical: {
currentHref: 'https://www.yohobuy.com/list?' // TODO
},
pageHeader: headerModel.setNav({
navTitle: req.query.title || req.query.sort_name
}),
... ...
... ... @@ -62,6 +62,9 @@ const newDetail = {
pageHeader: headerData,
result: result,
page: 'new-detail',
canonical: {
currentHref: `//www.yohobuy.com${req.originalUrl}`
},
title: `${result.brandName}|${result.sortName}|${result.goodsName}|YOHO!BUY 有货`,
keywords: result.brandName + result.sortName + ',' + result.brandName + '官网专卖店,' +
result.brandName + '官方授权店,' + result.brandName + '正品,' + result.brandName + '打折,' +
... ...