Open koskila opened 4 weeks ago
@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.
Category
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.