[TYPO3-core] FYI: Fixed bug #9932: htmlArea RTE Spellcheck does not work when TYPO3 is installed in subdir (TYPO3 4.3-dev)

Steffen Kamper info at sk-typo3.de
Tue Dec 23 10:12:01 CET 2008


Hi,

Martin Kutschker schrieb:
>>>
>>> We have constants for everything, there must be one for your case. I
>>> think you could use the path part of getIndpEnv($TYPO3_SITE_URL).
>>>
>> t3lib_div::getIndpEnv('TYPO3_SITE_URL') . TYPO3_mainDir .
>> '/ajax.php?ajaxID=rtehtmlarea::spellchecker'
>> should work
> 
> Probably, but the original code didn't include scheme and host in the URL.
> 

yes. you're right. So it's a bit more complecated like

substr(t3lib_div::getIndpEnv('TYPO3_SITE_URL'), 
strlen(t3lib_div::getIndpEnv('TYPO3_REQUEST_HOST')) . TYPO3_mainDir .
  '/ajax.php?ajaxID=rtehtmlarea::spellchecker'

Would it make sense to introduce something like 
TYPO3_SITE_URL_WITHOUT_SCHEME_AND_HOST ? (aweful name but clear what i mean)

vg Steffen


More information about the TYPO3-team-core mailing list