Bug #22930
closedabsRefPrefix should work with $TYPO3_CONF_VARS[BE][RTE_imageStorageDir]
0%
Description
If I add magic images in htmlarea RTE, images are always rendered with a relative path, even when absRefPrefix is set.
Solution could be to prepend absRefPrefix to $GLOBALS['TYPO3_CONF_VARS'][BE][RTE_imageStorageDir] in tslib_fe::setAbsRefPrefix()
TS setup:
config.absRefPrefix = http://www.example.com/
RTE:
Add magic image
Expected result:
<img src="http://www.example.com/uploads/RTEmagic... >
Actual result
<img src="uploads/RTEmagic... >
Workaround:
Set $TYPO3_CONF_VARS['FE']['additionalAbsRefPrefixDirectories'] = 'uploads';
(considering that [BE][RTE_imageStorageDir] = 'uploads';)
(issue imported from #M14783)
Files
Updated by Thomas Deinhamer over 14 years ago
I'd really be happy to have this in TYPO3. At the moment I was forced to use baseUrl when using absRefPrefix = /. The problem is, when the URL you're on is something like "/page/another-page/" (using RealUrl) the images of the RTE won't show up, because the path of the RTE image would resolve to "/page/another-page/uploads/magic-image.jpg" which is - of course - wrong. So adding baseUrl also helps but is imo not as clean as the workaround, which Steffen noted here (which I was not knowing of, until now - thanks so!)
Updated by Francois Suter about 14 years ago
Committed to:
- 4.3 in revision 8824
- 4.4 in revision 8825
- trunk in revision 8826