A page on the site contains rich text, part of which is a series of links to PDF documents the user can download. Clicking on these, however, results in a 404 error.
I've tried several RTE editing techniques to create the links: in particular, I've tried using both the Media Items and Search tabs in the Insert Link dialog to create the links, since they create different variations of internal links:
https://domain.name/-/media/Files/HCE/Documents/file-name-A.ashx
https://domain.name/-/media/Files/HCE/Documents/file-name-B.ashx?la=en&hash=407C1742E64B43FBEAD44C37277859973BF2B581486B09C905CC0570386324D3
I've also tried using the html editors to hack the links thus generated, e.g., by adding the "download" attribute to the anchor tags. None of these measures have been successful. (The "download" attribute did create a download link successfully, but the stub file it downloaded was invalid.)
I need to make this work from within the Rich Text Editor as it's important that our content contributors be able to maintain this themselves. Is there anything particularly evident from the above we might be doing wrong?