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.