[TYPO3-core] RFC #9455: RTE incorrectly modifies external links and causes problems with subdomains

Dan Osipov dosipov at phillyburbs.com
Thu Jul 30 21:47:07 CEST 2009


This is an SVN patch request.

Type: Bugfix

Bugtracker references:
http://bugs.typo3.org/view.php?id=9455

Branch: 4.2, Trunk

Scenario:
- domain (www.example.com) and subdomain (sub.example.com) in the same 
page tree
- editor logins in BE using www.example.com (this is important!)
- editor attempts to insert an external link to www.example.com in the 
article inside sub.example.com
- the link is seen in RTE HTML source properly (<a 
href="http://www.example.com/foo/bar/file.php?id=123">) [^]
- when CE is saved, link is transformed to <link 
foor/bar/file.php?id=123> (check with phpMyAdmin)
- when page is shown on the sub.example.com link becomes 
http://sub.example.com/foo/bar/file.php?id=123, [^] which is a wrong 
non-existing URL!

The desired outcome: domain portion is *not* removed on save in RTE if 
it is present.

If editor logs in from sub.example.com, the domain part is not stripped. 
But it should not be stripped in any case, it is external link and it 
should not be touched by RTE. For certain reasons users have to login 
from the main domain only.

This is an issue for domains as well. For more information see threads 
"External links become relative" in RTE list, and "External links in RTE 
on multi-domain site" in the English list.

Solution: Add a new setting that would keep all external URLs intact, 
even if they point to the current domain.

-- 
Dan Osipov
Calkins Media
http://danosipov.com/blog/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 9455_v2.diff
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090730/b1360bb1/attachment.txt 


More information about the TYPO3-team-core mailing list