Updating links after merge