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/dist/bundle.js +1 -1
- package/package.json +1 -1
- package/src/index.js +1 -0
package/package.json
CHANGED
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 站外引流触点
|