[TYPO3-core] RFC: #17699: ExtDirect API use relative url for ajax.php

Ernesto Baschny [cron IT] ernst at cron-it.de
Tue Feb 22 08:13:40 CET 2011


Steffen Kamper schrieb am 22.02.2011 00:44:

> This is an SVN patch request.
> 
> Type: Bugfix
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=17699
> 
> Branches:
> trunk, 4.5
> 
> This result in some wrong calls, if the API call comes out of a module.
> You may notice red flashmessages from Router with "Connection problems"
> - it's rather connection problem but wrong url.
> 
> Solution:
> use TYPO3_SITE_URL . /typo3/ajax.php to be sure call has correct url.

Tiny cosmetic: Better use the constant TYPO3_mainDir ("typo3/") instead
of hardcoding "typo3/" (see attached patch).

Other than that, +1 by reading and testing.

Cheers,
Ernesto
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 17699-v2.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20110222/de1e87ab/attachment.txt>


More information about the TYPO3-team-core mailing list