Skip to content

Using Set-PnPPage creates a new page instead of changing the options on pages in folders #1036

@mattdreher

Description

@mattdreher

Similar to issue #755 , when I use Set-PnPPage to turn off comments on the page that exists in a folder, it creates a new page instead of modifying the page in the folder.

Run this on the existing page that exists in a separate folder for example /SitePages/Test/Test.aspx
Set-PnPPage -Identity "Test.aspx" -CommentsEnabled:$false

The existing page isn't modified, a new page at the root is created with the same contents of /SitePages/Test/Test.aspx I am not creating the page though PowerShell using Add-PnPPage, so I cannot pipe that output to modify the page as these pages are already created. Using version 1.7.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions