bug 965: Also adjust the links to the replaced pages