XWIKI-8677: Link to an anchor in a unknown page fails to redirect
* Remove the fragment identifier from the link URL before making the AJAX request.
(cherry picked from commit 0411372cd8fbfe442a8a3d5b9cd47e50cf7e9a85)