I have a wiki library which contents is automatically copied onto another site. Some of the pages in the library contain images, the links to those images are relative.
Now I have a script which exports the wiki and images libraries, and imports them on another site. But on that site, the library is placed in a different subsite:
Now although the images library is in the same subsite as the wiki (like it was on siteA), the images still break. They keep on pointing to /wiki/images/image.jpg instead of /subsite.wiki/images/image.jpg.
So now I'm looking for a way to correct this, preferably in a powershell script, since the exporting / importing is done in powershell too. What's a good way of doing this?