The issue can be reproduced most of the time by follow this steps:
- create a new page (say Sandbox.TestPage) with this content:
- save then edit the page with the WYSIWYG editor
- edit the link
When the edit link dialog opens, the page selected in the XWiki Explorer tree is the edited page (Sandbox.Test) instead of the link target (Sandbox.WebHome).