@salesforcedevs/docs-components 1.3.108-seo-fix2 → 1.3.108-seo-fix3
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
|
@@ -694,8 +694,9 @@ export default class DocXmlContent extends LightningElementWithState<{
|
|
|
694
694
|
const docId = this.pageReference.docId;
|
|
695
695
|
|
|
696
696
|
// SEO fix:
|
|
697
|
+
// Doc id without version id is always considered latest and should be used for SEO.
|
|
697
698
|
// Condition is to find a docId which includes version id,
|
|
698
|
-
// these docs are always considered as old and
|
|
699
|
+
// these docs are always considered as old and should not be indexed including the preview docs.
|
|
699
700
|
if (
|
|
700
701
|
headTag.length &&
|
|
701
702
|
docId?.includes(versionId) &&
|