Moving a link target breaks the link

Related bug report, which we should fix soon: Moving item with links attached to it to another doc breaks links