wgt-node-utils 1.2.62 → 1.2.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wgt-node-utils",
3
- "version": "1.2.62",
3
+ "version": "1.2.63",
4
4
  "description": "WGT工具类包",
5
5
  "main": "dist/bundle.js",
6
6
  "scripts": {
package/src/index.js CHANGED
@@ -939,6 +939,7 @@ class wgtNodeUtils {
939
939
  href: item.code === 'en' ? pathWithoutLang : url
940
940
  }));
941
941
  languageLinkList.push({ rel: 'alternate', hrefLang: 'x-default', href: pathWithoutLang });
942
+ languageLinkList.push({ rel: 'canonical', href: pathWithoutLang });
942
943
  return languageLinkList
943
944
  }
944
945
  // Open Graph 和 Twitter Card 站外引流触点