Bug #21625
closedSection links coming from RTE broken in FE: rendered as #14185& instead of #c123
0%
Description
Problem:
If you enter a link to a specific CE via RTE the href-attribute points to a nonexisting id. Instead of #c123 you get #14185& in FE.
When you first enter the link in RTE, the href looks like this:
<a class="internal-link" href="http://gift.uni-erfurt.t3/?id=512#14185&">
In DB the link looks like this:
<link 512#14185& - internal-link>
And FE:
href="/area-51/bilder/bilder-im-rahmen/#14185&"
Uschi
(issue imported from #M12682)
Files
Updated by Oliver Hader almost 15 years ago
Works fine on my site with 4.3-RC1.
Where is the ampersand "&" comming from? Are there extensions installed on your installation that modify these links?
Updated by Steffen Kamper almost 15 years ago
sounds like wrong configured linkhandler
Updated by Stanislas Rolland almost 15 years ago
1. There is a superfluous ampersand coming from the RTE (when the query parameters field is enabled but contains no value).
2. Links that have both a section and additional parameters are not correctly inserted in the RTE and therefore are not correctly transformed on the way to the database.
3. Such links that have both a section and additional parameters are not correctly transformed on the way to the RTE.
4. Finally, whether they come from the RTE or not, typolinks that have both a section and additional parameters are not correctly rendered on the frontend.
Please test attached patch.
Updated by Uschi Renziehausen almost 15 years ago
Hey Stan,
thx a lot! My anchor links are working again like a charm.
Uschi (sending some coffee over the bugtracker)
Updated by Stanislas Rolland almost 15 years ago
Committed to SVN TYPO3core trunk (revision 6644) and branch TYPO3_4-3 (revision 6645).