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
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?