Forum Discussion
Invoke-PnPSiteTemplate Changes Page Links
- Aug 23, 2021
I didn't notice at first that the URL for each link started with "{site}". After the export command executed, I was able to open up the temp file with Notepad and do a find-and-replace, replacing "{site}" with the full URL of the source site (https://company.sharepoint.com/sites/sitename). I then executed the second command to create the page on the destination site.
It's worth noting that each link is listed twice, the first is the actual link while the second is what shows up when you hover over the link.a href="{site}/SitePages/sitepage.aspx" data-cke-saved-href="https://#company#.sharepoint.com/sites/#site#/SitePages/sitepage.aspx"
I didn't notice at first that the URL for each link started with "{site}". After the export command executed, I was able to open up the temp file with Notepad and do a find-and-replace, replacing "{site}" with the full URL of the source site (https://company.sharepoint.com/sites/sitename). I then executed the second command to create the page on the destination site.
It's worth noting that each link is listed twice, the first is the actual link while the second is what shows up when you hover over the link.
a href="{site}/SitePages/sitepage.aspx" data-cke-saved-href="https://#company#.sharepoint.com/sites/#site#/SitePages/sitepage.aspx"