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

Stanislas Rolland typo3 at sjbr.ca
Thu Apr 22 17:17:53 CEST 2010


RFC: This is an SVN patch request.

Type:
Bugfix

Problem:
Scenario 1:
- 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.

Scenario 2:
1. Create a multidomain environment with www.bla.com and www.blubb.com
2. Create a content element on a page in www.bla.com.
3. Create an external link to a page on the other domain www.blubb.com,
e.g., http://www.blubb.com/en/test.html
4. Save content element
5. View the page with the content element. The link will point to
http://www.bla.com/en/test.html

Solution:
When a link is set using the "External url" tab of the link dialogue,
add custom attribute external="1" to the link.
Use the presence of the custom attribute to determine that the url
should not be modified on the way to the database whether the link is
transformed in LINK tag or not.
When transforming the link or a tag on the way to the RTE, add custom
attribute "external" so that the RTE recognizes that the url should be 
treated as external.

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

Branches:
TYPO3_4-3
trunk

Regards,
Stanislas

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: typo3core_bugfix_9455_typo3_4-4.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100422/3faa4a59/attachment-0001.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: typo3core_bugfix_9455_typo3_4-3.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100422/3faa4a59/attachment-0001.txt>


More information about the TYPO3-team-core mailing list