[TYPO3-core] RFC #13568: ExtDirect - API generator should built absolute links

Bjoern Pedersen bjoern.pedersen at frm2.tum.de
Thu Feb 18 08:37:29 CET 2010


Am 17.02.2010 22:31, schrieb Steffen Kamper:
> Hi,
> 
> Francois Suter schrieb:
>> Hi Stefan,
>>
>>> Problem:
>>> The ExtDirect API generator should generate absolute links to be able to
>>> work from backend modules or frontend plugins. Otherwise you will get
>>> 404
>>> errors.
>>
>> Two remarks:
>>
>> 1) I haven't really followed this ExtDirect API yet (unfortunately)
>> but I'm wondering how you are hoping to call ajax.php from the FE?
>> This is a BE script, which goes through init.php which includes - in
>> particular - BE authentication. Or has something been changed in
>> ajax.php?
>>
> 
> that's true, but you can call ajax.php from modules, so there is no
> "BackPath". Absolut url is the best solution.
> 
>> 2) There's actually an API to build absolute links:
>> t3lib_div::locationHeaderUrl()
>>
> 
> that's the good thing when many eyes look on code ;)
> 
> Attached new version including my +1 on reading and testing.
> 
> If you want see ExtDirect in action, check the extension manager
> improvements project, i already use it (including this patch)
> 
> vg Steffen

Actually that is also related to  problems witj feeditadvanced and IRRE,
where ajax.php has to be called from a fe-plugin.
(http://bugs.typo3.org/view.php?id=11805).

Björn


More information about the TYPO3-team-core mailing list