XWIKI-8440: Unable to link to an attachment from the current page in the WYSIWYG Editor using "All Pages" tab
* Add functional test.
(cherry picked from commit 2c81a08831a31ed6697742fac6eb89ac274327eb)