Category
Describe the bug
When saving a modern page using PnP Core SDK, an unexpected layout modification occurs:
a fixed-width section with a banner (PageTitle web component) is automatically added at the top of the page.
Steps to reproduce
- Create a new Site Page through Sharepoint Online interface.
- Remove the default Banner WebPart and default Section.
- Add new Section of any type with a any component inside it.
- Save the page.
- At this point, when load & save the page throught the C# code:
var pages = await pnpContext.Web.GetPagesAsync(originPath);
var page = pages?.FirstOrDefault();
await page?.SaveAsync();
a fixed-width section is automatically added at the top of the page, containing a PageTitle component.
Expected behavior
The page structure should remain unchanged unless explicitly modified by the developer.
No automatic insertion of PageTitle/Banner and/or new sections.
Environment details (development & target environment)
PnP.Core.Auth version 1.15.0 - Nightly+65d212bef053486697d686e37a57db9e1701779f
PnP.Core version 1.15.0 - Nightly+65d212bef053486697d686e37a57db9e1701779f
.NET 8
Thanks you
Category
Describe the bug
When saving a modern page using PnP Core SDK, an unexpected layout modification occurs:
a fixed-width section with a banner (PageTitle web component) is automatically added at the top of the page.
Steps to reproduce
a fixed-width section is automatically added at the top of the page, containing a PageTitle component.
Expected behavior
The page structure should remain unchanged unless explicitly modified by the developer.
No automatic insertion of PageTitle/Banner and/or new sections.
Environment details (development & target environment)
PnP.Core.Auth version 1.15.0 - Nightly+65d212bef053486697d686e37a57db9e1701779f
PnP.Core version 1.15.0 - Nightly+65d212bef053486697d686e37a57db9e1701779f
.NET 8
Thanks you