@salesforcedevs/docs-components 1.14.8-alpha5 → 1.14.8-alpha6
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
|
@@ -346,6 +346,7 @@ export default class DocXmlContent extends LightningElementWithState<{
|
|
|
346
346
|
}
|
|
347
347
|
|
|
348
348
|
handleSelect(event: CustomEvent<{ name: string }>): void {
|
|
349
|
+
event.preventDefault();
|
|
349
350
|
event.stopPropagation();
|
|
350
351
|
const { name } = event.detail;
|
|
351
352
|
|
|
@@ -364,7 +365,9 @@ export default class DocXmlContent extends LightningElementWithState<{
|
|
|
364
365
|
contentDocumentId,
|
|
365
366
|
hash
|
|
366
367
|
});
|
|
367
|
-
this.updateUrl();
|
|
368
|
+
this.updateUrl(HistoryState.PUSH_STATE);
|
|
369
|
+
// Prevent default navigation
|
|
370
|
+
event.preventDefault();
|
|
368
371
|
}
|
|
369
372
|
}
|
|
370
373
|
|
|
@@ -581,11 +584,14 @@ export default class DocXmlContent extends LightningElementWithState<{
|
|
|
581
584
|
|
|
582
585
|
updateUrl(method = HistoryState.PUSH_STATE): void {
|
|
583
586
|
logCoveoPageView(this.coveoOrganizationId, this.coveoAnalyticsToken);
|
|
587
|
+
const url = this.pageReferenceToString(this.pageReference);
|
|
584
588
|
window.history[method](
|
|
585
589
|
{},
|
|
586
590
|
"docs",
|
|
587
|
-
|
|
591
|
+
url
|
|
588
592
|
);
|
|
593
|
+
// Prevent default navigation
|
|
594
|
+
event?.preventDefault();
|
|
589
595
|
}
|
|
590
596
|
|
|
591
597
|
private updateHighlighting(searchParam: string): void {
|