I have a site, marked as the "home site" in viva connections. Since that time, the site also contains an "Announcements" library:
Since the time the Announcements-Library existed, Get-PnPSiteTemplate -out test.xml -Handlers PageContents -IncludeAllClientSidePages creates only empty templates, containing no pages at all.
I have a site, marked as the "home site" in viva connections. Since that time, the site also contains an "Announcements" library:
Since the time the Announcements-Library existed,
Get-PnPSiteTemplate -out test.xml -Handlers PageContents -IncludeAllClientSidePages
creates only empty templates, containing no pages at all.My first quick finding was that https://github.com/pnp/pnpframework/blob/7c463c88c5dfba208b6d09b553b32f1a90f8051f/src/lib/PnP.Framework/Provisioning/ObjectHandlers/ObjectClientSidePageContents.cs#L67 returns the Announcements library, instead of the Site Pages.