pnp / pnp/pnpframework

[BUG] New folder created in Site Page library housing converted pages?

Open
#626 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
259
Forks
161
Avg merge
10h 33m
Merged PRs (30d)
1

Description

Thank you for reporting a bug. We appreciate your feedback - to help the team to understand your needs, please complete the below template to ensure we have the necessary details to assist you. Thanks!

Problem Area

[X] Page Transformation: Error during the use of page transformation from PnP PowerShell
[ ] Page Transformation: Error during the use of page transformation from .Net
[ ] Page Transformation: Page is not looking correct after transformation
[ ] Modernization Scanner: something went wrong...

Expected or Desired Behavior

That there is no folder is created in Site Pages to house the converted pages when converting classic wiki pages to modern equivalent.

To explain in another way, I have a Wiki library named "Wiki Docs" with classic wiki pages. Conversion script points to new site collection site page library. After conversion is run, all new converted wiki pages live in a folder called "Wiki Docs" within site page library. I would like the pages to be converted directly into Site Page library without worrying about storing in a folder first.

Observed Behavior

Currently when converting classic wiki pages from classic site and using -TargetWebUrl to target site page library of a modern site. A folder is created named after the classic wiki library the pages are converted from.

To explain in another way, I have a Wiki library named "Wiki Docs" with classic wiki pages. Conversion script points to new site collection site page library. After conversion is run, all new converted wiki pages live in a folder called "Wiki Docs" within site page library.

Steps to Reproduce

Run Convert-WikiAndWebPartPages.ps1 with Wiki pages from classic wiki library and using -TargetWebUrl pointing to separate site collection site page library. Upon first successfully converted page, you will see a the page lives within a folder named after the old wiki library it came from.

Submission Guidelines

Thanks for your contribution! Sharing is caring.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with Convert-WikiAndWebPartPages.ps1 and reproduce the conversion using -TargetWebUrl against a separate site collection. Trace where the first converted page is assigned its destination path; done means converted pages are placed directly in the target Site Pages library rather than a folder named after the source Wiki library.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.