Project

General

Profile

Actions

Bug #22930

closed

absRefPrefix should work with $TYPO3_CONF_VARS[BE][RTE_imageStorageDir]

Added by Steffen Müller almost 14 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Category:
Communication
Target version:
-
Start date:
2010-06-18
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

bug_14783.diff (1.09 KB) bug_14783.diff Administrator Admin, 2010-06-18 17:20

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #20897: absRefPrefix does not work with "magic image"Closed2009-08-18

Actions
Actions #1

Updated by Thomas Deinhamer almost 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!)

Actions #2

Updated by Francois Suter over 13 years ago

Committed to:
- 4.3 in revision 8824
- 4.4 in revision 8825
- trunk in revision 8826

Actions #3

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF