Collection-Preview: Populate collectionlinks

Our site currently only needs one request with populate: 10 to the cockpit API, wich then returns other collections in an embedded way.

Trying out the Preview functionality today (we’re thinking of implementing this into our pages), WebSocket / postMessage only transmits the specific object in the collection without populating collectionlinks.

Reading the source of collection-entrypreview.tag, I found that the object is directly transferred when the state change occurs.

We would have to send the changed content to the server to populate the fields first, then postMessage the resulting JSON to the page / sending the WebSocket event.

For this to work, a new RestApi-Endpoint will be needed.

Is this also how you would do it @artur?