Say you are migrating sites, o nthe landing page you have a CEWP. Inside the content are links, it was not possible to make them relative.
The code finds the default page, open it, get the web part. loads the web part content, changes it and saves changes.
private static void UpdateCE... (
more)