@salesforcedevs/dx-components 0.18.9 → 0.18.10
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.
|
|
3
|
+
"version": "0.18.10",
|
|
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": "
|
|
32
|
+
"gitHead": "f29684780634b9abec6ead2e47fe7bda05e31412"
|
|
33
33
|
}
|
|
@@ -285,23 +285,17 @@ export default class SidebarSearch extends LightningElement {
|
|
|
285
285
|
}: Result): SidebarSearchResult => {
|
|
286
286
|
// discussion about this normalization here: https://salesforce-internal.slack.com/archives/C020S6784JX/p1639506238376600
|
|
287
287
|
|
|
288
|
-
const isNestedGuide = clickUri.includes("/guide/");
|
|
289
|
-
const isGuide = clickUri.endsWith("/guide") || isNestedGuide;
|
|
290
|
-
const isReference = clickUri.endsWith("/references");
|
|
291
|
-
const isApex = !!sfhtml_url__c;
|
|
292
|
-
|
|
293
288
|
let pathname;
|
|
294
|
-
if (
|
|
289
|
+
if (sfhtml_url__c) {
|
|
295
290
|
pathname = `/docs/${sfhtml_url__c}`;
|
|
296
291
|
} else {
|
|
292
|
+
const isNestedGuide = clickUri.includes("/guide/");
|
|
297
293
|
const url = new URL(clickUri);
|
|
298
294
|
const extension = isNestedGuide ? ".html" : "";
|
|
299
295
|
pathname = `${url.pathname}${extension}`;
|
|
300
296
|
}
|
|
301
297
|
|
|
302
|
-
const
|
|
303
|
-
isGuide || isReference || isApex ? `?q=${this.value}` : "";
|
|
304
|
-
const href = `${pathname}${query}`;
|
|
298
|
+
const href = `${pathname}?q=${this.value}`;
|
|
305
299
|
|
|
306
300
|
return {
|
|
307
301
|
title,
|