pnp / modernization

All modernization tooling and guidance
http://aka.ms/sppnp-modernize
MIT License
156 stars 86 forks source link

[ISSUE] ConvertTo-PnPPage copies Images into Site Assets Library with a different path to on prem #667

Open ColonelSand3rs opened 11 months ago

ColonelSand3rs commented 11 months ago

Problem Area

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

Expected or Desired Behavior

Upon completion of the PnP modernization the images would be uploaded to the Site Assets library in a folder per page. The folders for the page images located in the Site Assets library on prem (SP2013) has spaces in the folder name whereas in SPO it uses Hyphens. This break the image links for images that come across in tables as the path no longer is correct. Expected the URL Rewrite rules to account for this.

Am aware that the images are loaded at the bottom of the page in web parts for images in tables. Is this a workaround for this issue?

Steps to Reproduce

Migrate a page with images in a table from SP2013 into SPO. The Page name is more than one word. Original Images come across as broken linked images. Changing the Site Assets folder name to remove the hyphens resolves the issue and makes the Images appear on page

Screenshot 2024-01-05 125023