@salesforcedevs/docs-components 0.56.2-seo-test6 → 0.56.2-seo-test9
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
|
@@ -586,7 +586,7 @@ export default class AmfReference extends LightningElement {
|
|
|
586
586
|
referenceId,
|
|
587
587
|
type,
|
|
588
588
|
topic,
|
|
589
|
-
label
|
|
589
|
+
topic.label
|
|
590
590
|
);
|
|
591
591
|
return {
|
|
592
592
|
label: topic.label,
|
|
@@ -1046,7 +1046,6 @@ export default class AmfReference extends LightningElement {
|
|
|
1046
1046
|
referenceId,
|
|
1047
1047
|
"summary"
|
|
1048
1048
|
);
|
|
1049
|
-
this.updateNavTitleMetaTag(selectedItemMetaData.navTitle);
|
|
1050
1049
|
}
|
|
1051
1050
|
|
|
1052
1051
|
if (selectedItemMetaData) {
|
|
@@ -1077,6 +1076,18 @@ export default class AmfReference extends LightningElement {
|
|
|
1077
1076
|
invalidTopicReferenceUrl = previousRefUrlInSession;
|
|
1078
1077
|
}
|
|
1079
1078
|
}
|
|
1079
|
+
if (!invalidTopicReferenceUrl) {
|
|
1080
|
+
const referenceUrl = window.location.href;
|
|
1081
|
+
const referenceMeta =
|
|
1082
|
+
this.getMarkdownReferenceMeta(referenceUrl);
|
|
1083
|
+
const selectedItemRefId =
|
|
1084
|
+
this.getReferenceIdFromUrl(referenceUrl);
|
|
1085
|
+
const referenceDetails = this.getRefDetailsForGivenTopicMeta(
|
|
1086
|
+
selectedItemRefId,
|
|
1087
|
+
referenceMeta
|
|
1088
|
+
);
|
|
1089
|
+
this.updateNavTitleMetaTag(referenceDetails.topicTitle);
|
|
1090
|
+
}
|
|
1080
1091
|
this.loadMarkdownBasedReference(invalidTopicReferenceUrl);
|
|
1081
1092
|
}
|
|
1082
1093
|
}
|
|
@@ -1102,7 +1113,6 @@ export default class AmfReference extends LightningElement {
|
|
|
1102
1113
|
|
|
1103
1114
|
private loadMarkdownBasedReference(referenceUrl?: string): void {
|
|
1104
1115
|
let referenceId = "";
|
|
1105
|
-
let topicTitle;
|
|
1106
1116
|
const currentUrl = window.location.href;
|
|
1107
1117
|
if (this.isProjectRootPath()) {
|
|
1108
1118
|
/**
|
|
@@ -1134,7 +1144,6 @@ export default class AmfReference extends LightningElement {
|
|
|
1134
1144
|
referenceMeta
|
|
1135
1145
|
);
|
|
1136
1146
|
const selectedItemUrl = referenceDetails?.referenceUrl;
|
|
1137
|
-
topicTitle = referenceDetails?.topicTitle;
|
|
1138
1147
|
if (!selectedItemUrl) {
|
|
1139
1148
|
referenceId = this.getReferenceIdFromUrl(referenceUrl);
|
|
1140
1149
|
}
|
|
@@ -1147,7 +1156,6 @@ export default class AmfReference extends LightningElement {
|
|
|
1147
1156
|
const childrenItems = amfConfig.topic.children;
|
|
1148
1157
|
if (childrenItems.length > 0) {
|
|
1149
1158
|
redirectReferenceUrl = childrenItems[0].link.href;
|
|
1150
|
-
topicTitle = childrenItems[0].label;
|
|
1151
1159
|
}
|
|
1152
1160
|
}
|
|
1153
1161
|
if (redirectReferenceUrl) {
|
|
@@ -1161,7 +1169,6 @@ export default class AmfReference extends LightningElement {
|
|
|
1161
1169
|
}
|
|
1162
1170
|
}
|
|
1163
1171
|
|
|
1164
|
-
this.updateNavTitleMetaTag(topicTitle);
|
|
1165
1172
|
this.versions = this.getVersions();
|
|
1166
1173
|
|
|
1167
1174
|
this.updateDocPhase();
|