Describe the bug
Accessing the attachments from the Recently Updated macro does not work
Steps to reproduce
Steps to reproduce the problematic behavior:
- Create a new page
- Add the macro "Recently Updated" to this page
- Add a new attachment to this page
- Save the page.
- Click on the link of the attachment in the list of Recently Updated macro
Expected behavior
You should be able to see the attachment, like in the ss below:

Actual behavior
You get "The attachment does not exist."
Also, the URL looks wrong:
http://localhost:8080/xwiki/bin/viewattachrev/%24%7Bresult/fullname%7D/myImageName.jpg

Environment (please complete the following information):
- XWiki version 16.10.8
- App version:
- reproduced the issue on 1.26.20, 1.26.19, 1.26.18
- it works as intended on version 1.26.17
Describe the bug
Accessing the attachments from the Recently Updated macro does not work
Steps to reproduce
Steps to reproduce the problematic behavior:
Expected behavior
You should be able to see the attachment, like in the ss below:

Actual behavior
You get "The attachment does not exist."
Also, the URL looks wrong:
http://localhost:8080/xwiki/bin/viewattachrev/%24%7Bresult/fullname%7D/myImageName.jpg
Environment (please complete the following information):