I am using JCE Editor Pro 2.7.11 + Joomla 3.9.5.
After uploading a document to show in a back-end module, Joomla adds /administrator/ in the link,
which makes the hyperlinks invalid.
Testing Instructions
Extensions > Modules > [Administrator] > New > Custom
Title: Test
Position: c-panel
Text: test: + upload a PDF + select to show the icon.
Result
The back-end Control Panel shows:
The HTML code
<p>test: <a class="wf_file" href="https://www.joomlacontenteditor.net/images/dummy.pdf"><img class="wf_file_icon" style="border: 0px; vertical-align: middle; max-width: inherit;" src="https://www.joomlacontenteditor.net/media/jce/icons/pdf.png" alt="pdf" /><span class="wf_file_text">dummy.pdf</span></a></p>
In the administrator back-end those links will become:
https://example.com/administrator/media/jce/icons/pdf.png
https://example.com/administrator/images/dummy.pdf
Solution
If you add slashes in front of the URL, the links will work in the back-end as well:
<p>test: <a class="wf_file" href="https://www.joomlacontenteditor.net/images/dummy.pdf"><img class="wf_file_icon" style="border: 0px; vertical-align: middle; max-width: inherit;" src="https://www.joomlacontenteditor.net/media/jce/icons/pdf.png" alt="pdf" /><span class="wf_file_text">dummy.pdf</span></a></p>
Could you please add slashes in front of the links so that it works well in the administrator back-end?