Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Querying for pages fails when Site Pages library is missing #1562

Open
1 task done
koskila opened this issue Oct 26, 2024 · 1 comment
Open
1 task done

Querying for pages fails when Site Pages library is missing #1562

koskila opened this issue Oct 26, 2024 · 1 comment
Assignees
Labels
area: pages API 📄 Working with modern pages

Comments

@koskila
Copy link

koskila commented Oct 26, 2024

Category

  • Bug

Describe the bug

pnp/powershell#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:
pnp/powershell#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.

@jansenbe jansenbe self-assigned this Nov 18, 2024
@jansenbe jansenbe added the area: pages API 📄 Working with modern pages label Nov 18, 2024
@jansenbe
Copy link
Contributor

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: pages API 📄 Working with modern pages
Projects
None yet
Development

No branches or pull requests

2 participants