Bug #80985
closedRTE: External links with & are broken because & converted to & (ckeditor and rtehtmlarea)
100%
Description
We're using rtehtmlarea from TER in a project together with TYPO 8.7.1. But the problem also occurs with ckeditor.
If an editor adds a new link with the wizard (e.g. in tt_content.bodytext) like
http://domain.org/?id=1&foo=bar
The link gets converted in database into
http://domain.org/?id=1&foo=bar
The link is also rendered in this way in frontend and this is wrong.
In the past in TYPO3 7.6 it was stored with & - in 8.7 links seems to be "htmlspecialchared".
Updated by Alex Kellner almost 7 years ago
Our quick workarround (maybe others also need that) is to use htmlspecialchars_decode() on link rendering:
lib.parseFunc_RTE { tags.a.typolink { parameter.HTMLparser = 1 parameter.HTMLparser { htmlSpecialChars = -1 } } }
Updated by Riccardo De Contardi almost 7 years ago
- Category set to RTE (rtehtmlarea + ckeditor)
Updated by Xavier Perseguers almost 7 years ago
- Has duplicate Bug #81152: CKEditor breaks links with parameter added
Updated by Benni Mack almost 7 years ago
Hey Alex,
wow. thanks for the info and the workaround. So this means the data is stored correctly in the DB but not rendered correctly in the output? Could you give me the snippet that is stored in the database?
Updated by Martin W. almost 7 years ago
Benni Mack wrote:
Hey Alex,
wow. thanks for the info and the workaround. So this means the data is stored correctly in the DB but not rendered correctly in the output? Could you give me the snippet that is stored in the database?
Hi Benni!
Same problem here, workaround works and we have the correct link in the RTE, in the DB it's stored with & and same was displayed in the frontend before the workaround.
So it's like Alex described above.
Updated by Benni Mack almost 7 years ago
- Related to Bug #25823: tslib_cObj::typoLink() geneates invalid links added
Updated by Benni Mack almost 7 years ago
Does it affect all links (internal, page links with additional parameters) or just external links?
Updated by Gerrit Code Review almost 7 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53268
Updated by Gerrit Code Review almost 7 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53268
Updated by Gerrit Code Review almost 7 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53268
Updated by Gerrit Code Review almost 7 years ago
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53281
Updated by Benni Mack almost 7 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset ba9d3657491ef4f84900650dd84423d7a6e0edd8.
Updated by Patrick Lenk about 6 years ago
Robert Vock wrote:
Internal links are not affected.
This affects also mail links like:
<a href="mailto:test@domain.org?subject=test&cc=test@domain.org&body=test">Mail Link</a>
And internal links like
<a href="https://currentdomain.org/page/?sender=sendername&receiver=receivername" data-fancybox="iframe" data-type="iframe">Internal Iframe Link (Dialog)</a>
are affected.
Updated by Helmut Hummel over 4 years ago
- Related to Bug #89264: Mailto links in RTE cannot use ampersand to add further arguments like subject=foo&body=bar added
Updated by Stephan Bauer over 2 years ago
Alex Kellner wrote in #note-1:
Our quick workarround (maybe others also need that) is to use htmlspecialchars_decode() on link rendering:
[...]
I still need the typoscript config with TYPO3 10.4.22 and ckeditor.