Project

General

Profile

Actions

Bug #20017

closed

Creating an absolute link in RTE sometimes gets converted to relative links

Added by Jose Antonio Guerra almost 16 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2009-02-13
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Suppose the following scenario:

1)

A multidomain TYPO3 website serving:

http://www.domain-a.com/
http://www.domain-b.com/

2) BE users access the backend using http://www.domain-a.com/typo3/
3) BE users allowed to edit http://www.domain-b.com/ do NOT have pages of http://www.domain-a.com/ mounted, so they can't see them in the page browser.

If such a BE user wants to link a page in http://www.domain-a.com/ the only way is by inserting an external link. The problem happens when the RTE record is saved to the database:

4) The RTE -> DB transformation converts "<a>" tags into "<link>" tags whenever possible. In this case, the <a> tag with the link (http://www.domain-a.com/wherever/) is converted AND the link itself is converted to a relative link (/wherever/).

5) When the content element is served, the link is converted again into an absolute link but it's wrong. (The link shows http://www.domain-b.com/wherever/ where it should be http://www.domain-a.com/wherever/)

The problem is on step (4) because the link should never become relative.

(issue imported from #M10438)


Files

patch10438.txt (449 Bytes) patch10438.txt Administrator Admin, 2009-02-13 18:45

Related issues 2 (0 open2 closed)

Has duplicate TYPO3 Core - Bug #19526: TYPO3 makes external URL wrongClosedDmitry Dulepov2008-10-29

Actions
Is duplicate of TYPO3 Core - Bug #19396: RTE incorrectly modifies external links and causes problems with subdomainsClosedStanislas Rolland2008-09-30

Actions
Actions #1

Updated by Jose Antonio Guerra almost 16 years ago

Patch attached

Actions

Also available in: Atom PDF