pnpcore icon indicating copy to clipboard operation
pnpcore copied to clipboard

Querying for pages fails when Site Pages library is missing

Open koskila opened this issue 1 year ago • 1 comments

Category

  • [x] Bug

Describe the bug

https://github.com/pnp/powershell/issues/3959 is caused when creating a Page with Add-PnpPage but it fails in querying the pages because the site is missing

Steps to reproduce

See this issue for details: https://github.com/pnp/powershell/issues/3959

Expected behavior

If trying to create a Modern page on a site, it's expected "Site Pages" library exists or is created if it's missing.

Other stuff

I'll submit a PR for adjusting, please review.

koskila avatar Oct 26 '24 14:10 koskila

@koskila : I've added comments to the PR you've created, thanks for submitting your proposal. My recommendation is to not change the default behavior of the library but rather offer an alternative new public method for developers to force the creation of the site pages library.

jansenbe avatar Nov 18 '24 09:11 jansenbe

@koskila : closing this one, and the related PR. Thanks anyhow for your work on this, but hope you can understand

jansenbe avatar Jun 27 '25 06:06 jansenbe