@dxos/plugin-space 0.7.1-staging.8709ba7 → 0.7.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.
@@ -2667,14 +2667,14 @@ var SpacePlugin = ({ invitationUrl = window.location.origin, invitationParam = "
2667
2667
  ]
2668
2668
  ]
2669
2669
  };
2670
- break;
2671
2670
  }
2672
2671
  case SpaceAction.SHARE: {
2673
2672
  const space = intent.data?.space;
2674
2673
  if (isSpace2(space) && !space.properties[COMPOSER_SPACE_LOCK]) {
2675
2674
  const active = navigationPlugin?.provides.location.active;
2676
2675
  const mode = layoutPlugin?.provides.layout.layoutMode;
2677
- const target = active ? firstIdInPart(active, mode === "solo" ? "solo" : "main") : void 0;
2676
+ const current = active ? firstIdInPart(active, mode === "solo" ? "solo" : "main") : void 0;
2677
+ const target = current?.startsWith(space.id) ? current : void 0;
2678
2678
  return {
2679
2679
  data: true,
2680
2680
  intents: [