@bigbinary/neeto-site-blocks 1.15.2 → 1.16.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/dist/index.cjs.js CHANGED
@@ -7205,7 +7205,8 @@ var Button = function Button(_ref) {
7205
7205
  }));
7206
7206
  }
7207
7207
  if (action === "page") {
7208
- var pageUrl = draftMode ? "".concat(baseUrl).concat(to) : to;
7208
+ var pageHref = to === "/" ? "" : to;
7209
+ var pageUrl = draftMode ? "".concat(baseUrl).concat(pageHref) : pageHref;
7209
7210
  return /*#__PURE__*/jsxRuntime.jsx(StyledAnchor, _objectSpread$B(_objectSpread$B({
7210
7211
  as: Link !== null && Link !== void 0 ? Link : "a"
7211
7212
  }, commonProps), {}, {
@@ -7348,10 +7349,12 @@ var LinkElement = function LinkElement(_ref) {
7348
7349
  }));
7349
7350
  }
7350
7351
  if (action === "page") {
7352
+ var pageHref = to === "/" ? "" : to;
7353
+ var pageUrl = draftMode ? "".concat(baseUrl).concat(pageHref) : pageHref;
7351
7354
  return /*#__PURE__*/jsxRuntime.jsxs(StyledAnchor, _objectSpread$z(_objectSpread$z({
7352
7355
  as: Link !== null && Link !== void 0 ? Link : "a"
7353
7356
  }, commonProps), {}, {
7354
- to: draftMode ? "".concat(baseUrl).concat(to) : to,
7357
+ to: pageUrl,
7355
7358
  children: [label, Icon && /*#__PURE__*/jsxRuntime.jsx(Icon, {}), children]
7356
7359
  }));
7357
7360
  }