Skip to content

[BUG] Viva Connections creates a second pages library, breaking site pages detection #3710

@nils-a

Description

@nils-a

Expected behavior

The PagesUtility contains code to find the "site pages" library.
I would expect this code to find the "site pages".

Actual behavior

This code might fail or target the wrong library, for sites that have Viva connections created "Announcements" library.

Steps to reproduce behavior

The same or similar code was modified in pnp/pnpframework#975 and pnp/pnpcore@0ea1c82

What is the version of the Cmdlet module you are running?

I looked at the current version:

if (list.IsPropertyAvailable(p => p.Fields) && list.Fields.AsRequested().FirstOrDefault(p => p.InternalName == "CanvasContent1") != null)
{
pagesLibrary = list;
break;
}

Which operating system/environment are you running PnP PowerShell on?

  • Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions