Project

General

Profile

Actions

Bug #65608

closed

BaseURL is wrong in Frontend when using RealURL with config.absRefPrefix

Added by M. Stichweh over 9 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2015-03-09
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
No
Sprint Focus:

Description

The baseURL is wrong when the RTE editor is embeded in Frontend if RealURL is used and config.absRefPrefix is set instead of setting config.baseUrl. The problem is, if absRefPrefix is set to '/' for example, the baseURL is set by JavaScript using document.baseURI (or by fetching the base-Tag on IE). But since no base-Tag is set the full RealURL path is used as baseURL, so the base-Tag and the CSS resource pathes are wrong in the RTE iframe.
The baseURL should by set as parameter by PHP when building the "RTEarea[editornumber]" JavaScript configuration array instead of setting it in JavaScript. Then it could by set using config.baseURL or config.absRefPrefix maybe with the help of the typolink logic.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #65705: baseURL determination of EXT:rtehtmlare fails in edge caseClosed2015-03-12

Actions
Related to TYPO3 Core - Bug #79568: baseURL determination of EXT:rtehtmlarea fails in frontend editingClosed2017-01-31

Actions
Actions

Also available in: Atom PDF