Bug #29853
closed
Broken image paths when in workspace module.
Added by Bart Dubelaar about 13 years ago.
Updated about 6 years ago.
Description
When comparing live & draft versions in the workspaces module, images paths are broken and images are not shown.
The point is that, if your images are stored in 'uploads/', the relative path will now be 'typo3/uploads/' because you're viewing the backend. Is this a bug or can this be fixed with a setting somewhere?
Files
I can confirm this is a bug (using the introduction package 4.5.6)
The problem is that the record as it is in the database is outputted directly without any parsing.
In extdirect/server.php: $liveRecord = t3lib_BEfunc::getRecord($parameter->table, $parameter->t3ver_oid);), and that gets printed.
Of course I can do a dirty search for 'uploads/', 'fileadmin/', etc. and prefix it with a slash. But that just doesn't cut it.
Can anyone point me to some proper functions to parse the record from the DB? Then I will create a fix.
Patch set 1 of change I9e8cdf717ce0c89ab3e16d33267727f7050092a9 has been pushed to the review server.
It is available at http://review.typo3.org/5370
- Status changed from New to Under Review
Patch set 1 of change I4aa49e8c9d41f47af2c56562284be0c494c78713 has been pushed to the review server.
It is available at http://review.typo3.org/6005
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset commit:f9f3c737a1e23c0126b2604299b4e8c902ea5a47.
- Category changed from Bugs to Workspaces
- Project changed from 624 to TYPO3 Core
- Category changed from Workspaces to Workspaces
- Status changed from Resolved to Closed
Also available in: Atom
PDF