@salesforcedevs/dx-components 0.18.1 → 0.18.2

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/dx-components",
3
- "version": "0.18.1",
3
+ "version": "0.18.2",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -29,5 +29,5 @@
29
29
  "@types/debounce": "^1.2.0",
30
30
  "@types/lodash.get": "^4.4.6"
31
31
  },
32
- "gitHead": "582d4e57d2fa40c37540bbbe3f41c01159897832"
32
+ "gitHead": "77ff77a056bff18cb773c9c306af40e8e63b717f"
33
33
  }
@@ -282,8 +282,20 @@ export default class SidebarSearch extends LightningElement {
282
282
  uniqueId
283
283
  }: Result): SidebarSearchResult => {
284
284
  // discussion about this normalization here: https://salesforce-internal.slack.com/archives/C020S6784JX/p1639506238376600
285
+ const splitUri = clickUri.split("/");
286
+ let endPathInUri = "";
287
+
288
+ if (splitUri[splitUri.length - 1]) {
289
+ endPathInUri = splitUri[splitUri.length - 1];
290
+ }
291
+
292
+ const isOverview =
293
+ endPathInUri === "overview" ||
294
+ this.coveoAdvancedQueryConfig.path_segment_3 === endPathInUri;
295
+
285
296
  const extension =
286
- this.coveoAdvancedQueryConfig.path_segment_4 === "references"
297
+ this.coveoAdvancedQueryConfig.path_segment_4 === "references" ||
298
+ isOverview
287
299
  ? ""
288
300
  : ".html";
289
301
  const pathname = sfhtml_url__c