#19396RTE incorrectly modifies external links and causes problems with subdomains
Description
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 ()
- when CE is saved, link is transformed to <link foor bar> (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.
I am not sure, may be “?id=” is related here.
The problem happens in official TYPO3 4.2.1
(issue imported from #M9455)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.