Bug #18700
closedTYPO3 4.2.0 - DAM browser returns an invalid file link in htmlArea RTE
0%
Description
- Install DAM
- In configuration of rtehtmlarea, activate "enable DAM Browser"
This replaces the "File" tab in insert hyperlink with a "Media" tab.
Now select a file located in fileadmin from RTE. The returned link to the file does not contain the "fileadmin/path/to/directory" part, but only the hostname and the filename. That is:
instead of http://domain.tld/fileadmin/path/to/somefile.txt
I get
http://domain.tld/somefile.txt
which is then stored as a link to "/somefile.txt" in DB (using standard RTE transformations) and this is link is rendered as "http:///somefile.txt" in page rendering process.
(issue imported from #M8254)
Files
Updated by Xavier Perseguers over 16 years ago
If I activate the DAM browser, any click to select a Media file leads to calling function insertElement which is defined in <sysext>/rtehtmlarea/mod3/class.tx_rtehtmlarea_dam_browse_links.php, line 431.
The parameter filename only contains the filename, not the path. The function calls link_folder(filename), which thus calls it without any file path.
If I deactivate the DAM browser, then any click to select a file calls function link_folder with parameter "fileadmin/path/to/filename".
Updated by Stanislas Rolland over 16 years ago
Fixed in SVN TYPO3core branch TYPO3_4-2 revision 3635.