Details
-
Story
-
Resolution: Unresolved
-
Neutral
-
None
-
None
-
None
Description
Case
We have a home page with, let's say, 10 subpages. I make changes to the main page and three subpages. On the main page, I click "Publish including subnodes". Webhook sends me a "path" only to the main page - the Next.js rebuilds only the main page, and the other subpages remain unchanged.
Workaround
The `recursive` flag tells that `Publish including subnodes` was used.
The code triggered by the webhook needs to find the subnodes.
Solution
Webhook to add extra parameter when `recursive` is true containing all published children.
e.g
?eventld=fe38b454-ca13-4c96-bfe7-bba8f0895160&path=%2F777&workspace=website&eventType=PUBLISHED&nodeType=mgnI%3Apage&recursive=true&subnodesPaths=%2F777%2F1,%2F777%2F123&eventDate=2022-06-29T23%3A35%3A47.652
Future
Webhook to also send paths where published paths are referenced