Bug #69545
closedTypo3 6.2 Faulty links in RTE
0%
Description
Hello,
if I set an internal link in RTE, it is displayed correctly on the realurl.
But if I add rel="nofollow" it shows only ....de/index.php?id=8043 (e.g.).
If I take the rel="nofollow" away, the realurl is back again.
I'M using the rel="nofollow" in the RTE through "Insert Link" -> "page" -> "relationship".
regards
Peter
I'm using 6.2.12
Updated by Riccardo De Contardi about 9 years ago
I have not found "Insert Link" -> "page" -> "relationship"
, but I added the attribute rel="nofollow"
to the link using the source code icon in RTE.
this is my procedure:
1) create a link in the RTE. looking at the code saved in RTE:
<a href="http://typo3.62.development.it:8888/?id=6">lorem ipsum</a>
2) in the frontend the link becomes:
<a href="index.php?id=6">lorem ipsum</a>
which is fully handled by RealUrl.
3) but, adding the rel="nofollow" this way:
<a href="http://typo3.62.development.it:8888/?id=6" rel="nofollow">lorem ipsum</a>
after saving it, the code becomes:
<a href="http://typo3.62.development.it:8888/?id=6" rel="nofollow" rtekeep="1">lorem ipsum</a>
so a rtekeep="1"
is added. In the frontend the link becomes:
<a href="?id=6" rel="nofollow">lorem ipsum</a>
tested with both 6.2.15 and 7.5-dev (latest master).
I think this is the reason why RealUrl can't process it....I guess it is a standard behavior of RTE for manually created anchors (adding the rel attribute made RTE think that it was a manual anchor, I guess)
Updated by Riccardo De Contardi about 9 years ago
I also tried (6.2.15) using the TSConfig of #68041 :
RTE.default.buttons.link.relAttribute.enabled = 1
and the behavior is the same reported on my previous comment
Updated by Riccardo De Contardi over 7 years ago
I just performed a test with 8.7.0 and the latest version of RealUrl and CKEditor.
I manually added the rel="nofollow"
attribute to a link inside the RTE; the result is that the attribute is kept and RealUrl works
Updated by Riccardo De Contardi over 7 years ago
- Status changed from New to Closed
we are sorry, but we close this issue as now TYPO3 uses CKEditor where the issue is not reproducible and RTEHtmlarea development has been stopped.
RTEHtmlarea has been decoupled from the core and its code is available on GitHub:
https://github.com/FriendsOfTYPO3/rtehtmlarea
If you still need this fixed please create a PR on GitHub