Bug #17132
closedFunction linkWrapFile() in file class.file_list.inc uses wrong PATH prefix.
0%
Description
one of our developers encountered a problem when trying to view a css file from within the filelist module und her user environment. The absolute url of the file was similar to:
http://mydomain.com/~username/project/fileadmin/templates/css/file.css
When trying to view the file by clicking the files name, the url of the newly opened window was somethink like this:
http://mydomain.com/project/fileadmin/templates/css/file.css
after having a closer look, I was able to get to the bottom of it:
The function linkWrapFile() in file class.file_list.inc takes the absolute path of the file in the filesystem and strips of the string of the document root. The remaining path is passed to the javascript function openUrlInWindow(). If you have a project setting where the location of the file in the filesystem is not similar to the location representation of the webserver, the file can't be found and the newly opened window shows an error.
I would suggest to pass the absolute path to the javascript function including the TYPO3_SITE_URL.
I will include a patch later.
(issue imported from #M5260)
Files