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