Sep 28 2018
I am trying to create modern site pages on a sub site pragmatically via CSOM (using OfficeDevPnP.Core). I have noticed following:
1) if I use sub site's web.context the page is getting created in the root site. I have enabled the feature B6917CB1-93A0-4B97-A84D-7CF49975D4EC in both root and sub site
2) If I create a client context directly to the sub site using cc = new cc(subsiteurl), the page is getting created but it is created as text file and downloads when clicked.
Any pointers will be very helpful.