Bug #20941
closedfe-editing broken if IRRE-elements are used with RealURL
0%
Description
If IRRE-Elements are used in fe-editing, the links for the ajax.php script and the wizard-scripts are wrong.
They should point into the typo3/ directory, but point to the web root.
Possible cause: The backend uses t3lib_div::getIndpEnv('REQUEST_URI') to get the URL,
which will not work in FE, as that would be the FE-URL. One partial fix is to add additional RewriteRules to redirect the request.
Additionally their is a missing initialization of the inline part in class.tslib_content.php (editpanel generation). Solution see attached patch.
(issue imported from #M11805)
Files
Updated by Björn Pedersen almost 15 years ago
With 4.3RC2 the behaviour still exists.
These 2 Rewrite-Rules fix part of the problem, but some icons are still not found.
RewriteRule ^ajax.php\?(.*)$ typo3/ajax.php?\1 [L]
RewriteRule ^ajax.php typo3/ajax.php [L]
Updated by Björn Pedersen almost 15 years ago
further invstigations:
if using feeditadvanced, the editing form is loaded as an eId-script via index.php.
The IRRE-javacript calls makeAjaxCall: which sets the url to just ajax.php. missing the typo3/ prefix.
If I redirect the request as shown above, the icons in the resulting form are missing (they assume a doucment root with typo3/
So the bug can either be in the IRRE-part( The js needs to be feedit-aware) or in feeditadvanced (the iframe should be generated from a file in typo3/.
Updated by Björn Pedersen almost 15 years ago
Now I found a working solution:
In jsfunc.inline.js:
add a var + setter function to store the path to typo3 and prepend it to the ajax call.
In tceforms : call this setter function if TYPO3_MODE =='FE' with TYPO3_maindir
Patch is attached.
Updated by Björn Pedersen almost 15 years ago
It seems that this also effects other js-scripts calling ajax.php, e.g. ttnews_category_tree in fe-editing.
Updated by Björn Pedersen almost 15 years ago
Adding a new patch that fixes (hopefully all) the issuses with ajax-calls in FE-editing. In extensions this needs some changes in ajax-calling javascript. A patch for tt_news-category tree will be provided as well.
Updated by Oliver Hader over 14 years ago
- TYPO3_4-3 (rev. 7109)
- Trunk (rev. 7110)