Authored by 张孝茹

seo 详情 逛遗漏

@@ -294,6 +294,9 @@ const index = (req, res, next) => { @@ -294,6 +294,9 @@ const index = (req, res, next) => {
294 data.guang.wxFooter = wxFooter; 294 data.guang.wxFooter = wxFooter;
295 res.render('info/index', Object.assign({ 295 res.render('info/index', Object.assign({
296 page: 'info-index', 296 page: 'info-index',
  297 + canonical: {
  298 + currentHref: `https://www.yohobuy.com${req.originalUrl}`
  299 + },
297 gender: gender, 300 gender: gender,
298 wechatShare: true, 301 wechatShare: true,
299 isWeixin: isWeixin, 302 isWeixin: isWeixin,
@@ -84,7 +84,7 @@ const keyId = (req, res, next) => { @@ -84,7 +84,7 @@ const keyId = (req, res, next) => {
84 'total', 0)}${queryKey}、产品的详细参数,实时报价,价格行情,图片、评价、品牌等信息。买${queryKey},就上YOHO!BUY有货`, 84 'total', 0)}${queryKey}、产品的详细参数,实时报价,价格行情,图片、评价、品牌等信息。买${queryKey},就上YOHO!BUY有货`,
85 pageFooter: true, 85 pageFooter: true,
86 canonical: { 86 canonical: {
87 - currentHref: `//www.yohobuy.com${req.originalUrl}` 87 + currentHref: `https://www.yohobuy.com${req.originalUrl}`
88 } 88 }
89 }); 89 });
90 }).catch(next); 90 }).catch(next);
@@ -63,7 +63,7 @@ const newDetail = { @@ -63,7 +63,7 @@ const newDetail = {
63 result: result, 63 result: result,
64 page: 'new-detail', 64 page: 'new-detail',
65 canonical: { 65 canonical: {
66 - currentHref: `//www.yohobuy.com${req.originalUrl}` 66 + currentHref: `https://www.yohobuy.com${req.originalUrl}`
67 }, 67 },
68 title: `【${result.brandName}${result.sortName}${result.goodsName}|YOHO!BUY 有货`, 68 title: `【${result.brandName}${result.sortName}${result.goodsName}|YOHO!BUY 有货`,
69 keywords: result.brandName + result.sortName + ',' + result.brandName + result.sortName + '价格,' + 69 keywords: result.brandName + result.sortName + ',' + result.brandName + result.sortName + '价格,' +
@@ -25,7 +25,7 @@ @@ -25,7 +25,7 @@
25 </span> 25 </span>
26 {{/ comments}} 26 {{/ comments}}
27 </div> 27 </div>
28 - <a class="comment-content-footer tap-hightlight" href="{{commentsUrl}}"> 28 + <a class="comment-content-footer tap-hightlight" href="{{commentsUrl}}" rel="nofollow">
29 查看更多 29 查看更多
30 <span class="iconfont">&#xe604;</span> 30 <span class="iconfont">&#xe604;</span>
31 </a> 31 </a>