Bug #22092
closed
Automatic linking ignores/replaces protocol
Added by Christian Hennecke almost 15 years ago.
Updated about 6 years ago.
Description
When you enter a URL in an RTE field it will be linked to its address automatically. However, the created links src attribute always uses HTTP as protocol, even if the URL uses FTP or something else.
Steps to reproduce:
1. Create a new content element with a RTE field.
2. Enter a full URL, e.g., http://www.example.com. Press Enter. The URL will be linked automatically with the src attribute of the a tag being filled with itself. This is correct.
3. Now enter another URL using a different protocol, e.g., ftp://ftp.example.com. Press Enter. The URL will be linked automatically with the src attribute of the a tag wrongly saying http://ftp.example.com.
This is really problematic for editors since they have to double-check everything.
(issue imported from #M13480)
Files
Sorry, I was talking about the href attribute of course.
BTW, this problem occurs with Firefox 3.5.7 and Opera 10.10 under Linux. It DOES work correctly with IE8 under Windows, though.
Please test the attached patch for Firefox, Opera and Safari, and TYPO3 4.3.
You will need to clear the RTE cache (using the TYPO3 backend Clear cache menu) and the browsers caches.
Sorry this doesn't work here, at least with Firefox. The link created only has a href of "http://http", "ftp://ftp" etc.
Sorry, the second version of the patch should work.
Yes, this fixes the problem. Tested with Firefox 3.5.8 and Opera 10.10 on Linux. Thanks!
Committed to SVN TYPO3core branch TYPO3_4-3 (revision 6916).
The trunk version of this patch was bundled into #13580 and was therefore committed with trunk revision 6940.
- Status changed from Resolved to Closed
Also available in: Atom
PDF