XWIKI-8440: Unable to link to an attachment from the current page in the WYSIWYG Editor using "All Pages" tab
(cherry picked from commit e9a533739810bca795c3fbf6d5c0a4a4049c1e19)