@retailcrm/datalens-ui 0.2.0 → 0.2.1

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": "@retailcrm/datalens-ui",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Datalens UI packed as library",
5
5
  "author": "RetailDriverLLC <integration@retailcrm.ru>",
6
6
  "contributors": [
@@ -38,6 +38,7 @@ const CollectionBreadcrumbs = React__default.memo(
38
38
  }, [isLoading, router, collections, workbook]);
39
39
  return /* @__PURE__ */ jsx("div", { className: b(null, className), children: /* @__PURE__ */ jsx(Breadcrumbs, { className: b("container"), children: items.map((item, index, list) => {
40
40
  const isLast = index === list.length - 1;
41
+ const url = new URL(item.path ?? "/", "http://sample.test");
41
42
  return /* @__PURE__ */ jsx(
42
43
  Breadcrumbs.Item,
43
44
  {
@@ -50,7 +51,10 @@ const CollectionBreadcrumbs = React__default.memo(
50
51
  },
51
52
  className: b("item"),
52
53
  disabled: isLast,
53
- href: item.path,
54
+ href: router.history.createHref({
55
+ pathname: url.pathname,
56
+ search: url.search
57
+ }),
54
58
  children: item.id === LOADING_ITEM_ID ? /* @__PURE__ */ jsx(Skeleton, { className: b("skeleton") }) : item.text
55
59
  },
56
60
  index