@digital-b2c/coreui-kit 0.11.18 → 0.11.20
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/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3294,7 +3294,7 @@ var ResourcesGridList = ({
|
|
|
3294
3294
|
const categoryText = (_b = (_a2 = categories[index]) == null ? void 0 : _a2.label) == null ? void 0 : _b.replaceAll(" ", "-");
|
|
3295
3295
|
if (typeof window !== "undefined" && categoryText) {
|
|
3296
3296
|
const base_url = window.location.pathname.endsWith("/") ? window.location.pathname.slice(0, -1) : window.location.pathname;
|
|
3297
|
-
const url = `${base_url}#${categoryText}`;
|
|
3297
|
+
const url = categoryText !== "All-Resources" ? `${base_url}#${categoryText}` : `${base_url}`;
|
|
3298
3298
|
window.history.replaceState(null, "", url);
|
|
3299
3299
|
window.dispatchEvent(new HashChangeEvent("hashchange"));
|
|
3300
3300
|
}
|