@salesforcedevs/docs-components 0.56.2-seo-test14 → 0.56.2-seo-test15
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
|
@@ -1226,16 +1226,18 @@ export default class AmfReference extends LightningElement {
|
|
|
1226
1226
|
this.isSpecBasedReference(urlReferenceId);
|
|
1227
1227
|
if (specBasedReference) {
|
|
1228
1228
|
const metaVal = this.getMetaFromUrl(name);
|
|
1229
|
+
const encodedMeta = this.getUrlEncoded(metaVal);
|
|
1230
|
+
const decodedMeta = decodeURIComponent(encodedMeta);
|
|
1229
1231
|
const currentSelectedMeta = this.selectedTopic
|
|
1230
1232
|
? this.selectedTopic.meta
|
|
1231
1233
|
: "";
|
|
1232
1234
|
|
|
1233
|
-
if (
|
|
1235
|
+
if (decodedMeta && decodedMeta === currentSelectedMeta) {
|
|
1234
1236
|
// selecting the same nav item, skip update
|
|
1235
1237
|
return;
|
|
1236
1238
|
}
|
|
1237
1239
|
|
|
1238
|
-
const metadata = this.metadata[
|
|
1240
|
+
const metadata = this.metadata[decodedMeta];
|
|
1239
1241
|
if (metadata) {
|
|
1240
1242
|
const {
|
|
1241
1243
|
parentReferencePath,
|
|
@@ -1250,9 +1252,12 @@ export default class AmfReference extends LightningElement {
|
|
|
1250
1252
|
amfId,
|
|
1251
1253
|
type,
|
|
1252
1254
|
elementId,
|
|
1253
|
-
|
|
1255
|
+
decodedMeta
|
|
1256
|
+
);
|
|
1257
|
+
this.updateUrlWithSelected(
|
|
1258
|
+
parentReferencePath,
|
|
1259
|
+
decodedMeta
|
|
1254
1260
|
);
|
|
1255
|
-
this.updateUrlWithSelected(parentReferencePath, metaVal);
|
|
1256
1261
|
this.updateNavTitleMetaTag(metadata.navTitle);
|
|
1257
1262
|
} else {
|
|
1258
1263
|
if (this.isParentReferencePath(name)) {
|