I am using the PnP PowerShell script Convert-WikiAndWebPartPages.ps1
(with the switch 'Modern page takes source page name' set to true), from Transforming to modern site pages using PowerShell, to convert site pages to modern pages.
But I am running into an issue with the migrated wiki pages. The pages contain links to the other pages, but after the conversion the links in the modern pages are pointing to Previous_xxx.aspx
.
So after the conversion to modern pages all links need to be fixed to the original source page name (and I would like to keep the page creation/modification info).
Which PnP PowerShell commands can I use to correct the links?
[]
. But if I check View source in the original files it is like:<a class="ms-wikilink" href="/sites/AAA/wiki/Wiki%20Pages/Test%20Information.aspx">
. And in the converted files it is like:\u003ca class=\\\"ms-missinglink\\\" href=\\\"/sites/AAA/SitePages/Previous_Test%20Information.aspx\\\"\u003e