You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#99658 Hyperlink to uploaded document in Administrator Custom module

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

pe7er
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?