@amplifyup/sdk 0.1.41 → 0.1.43

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.
@@ -1365,8 +1365,15 @@ Available Console Commands:
1365
1365
  });
1366
1366
  if (preview) {
1367
1367
  params.set("preview", "true");
1368
- if (typeof window !== "undefined" && isWorkingContentRequest(new URLSearchParams(window.location.search))) {
1369
- params.set("working", "true");
1368
+ if (typeof window !== "undefined") {
1369
+ const pageSearch = new URLSearchParams(window.location.search);
1370
+ if (isWorkingContentRequest(pageSearch)) {
1371
+ params.set("working", "true");
1372
+ }
1373
+ const zoneId = pageSearch.get("zoneId");
1374
+ const compositionId = pageSearch.get("compositionId");
1375
+ if (zoneId) params.set("zoneId", zoneId);
1376
+ if (compositionId) params.set("compositionId", compositionId);
1370
1377
  }
1371
1378
  }
1372
1379
  if (isOnOrchestratorOrigin) {