@digital-b2c/coreui-kit 0.11.18 → 0.11.19
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.cjs
CHANGED
|
@@ -3302,7 +3302,7 @@ var ResourcesGridList = ({
|
|
|
3302
3302
|
const categoryText = (_b = (_a2 = categories[index]) == null ? void 0 : _a2.label) == null ? void 0 : _b.replaceAll(" ", "-");
|
|
3303
3303
|
if (typeof window !== "undefined" && categoryText) {
|
|
3304
3304
|
const base_url = window.location.pathname.endsWith("/") ? window.location.pathname.slice(0, -1) : window.location.pathname;
|
|
3305
|
-
const url = `${base_url}#${categoryText}`;
|
|
3305
|
+
const url = categoryText !== "All-Resources" ? `${base_url}#${categoryText}` : `${base_url}`;
|
|
3306
3306
|
window.history.replaceState(null, "", url);
|
|
3307
3307
|
window.dispatchEvent(new HashChangeEvent("hashchange"));
|
|
3308
3308
|
}
|