Create Modern Page inside custom library in SharePoint Online

Viewed 15

I am using ConvertTo-PnPPage function in PnP PowerShell to convert classic page to modern page. I saw that if the page is inside Site Assets or any other custom library, then after conversion the page is created inside Site Pages library and within a folder named with the library name.

Can we create/convert modern page in the same library where the source page is present? Or Is there a restriction that modern pages are only available in Site Pages library? I tried finding about this in the documentation. But couldn't find related information.

Thank you!

0 Answers
Related