Project

General

Profile

Actions

Bug #80475

closed

CSS classes in links are stripped in frontend

Added by Chris no-lastname-given over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2017-03-27
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

In TYPO3 8.6.1 all CSS classes in links will be stripped in the frontend.

This
<a href="t3://file?uid=55" class="download">file</a>

will result in that
<a href="/fileadmin/myfile.pdf">file</a>

Actions #1

Updated by Riccardo De Contardi over 7 years ago

  • Status changed from New to Needs Feedback

Hello. Could you give us more information about how to reproduce your issue? What steps did you follow? Thank you!

Actions #2

Updated by Riccardo De Contardi over 7 years ago

  • Category set to Frontend
Actions #3

Updated by Riccardo De Contardi over 7 years ago

Is this one related? #79896

Actions #4

Updated by Chris no-lastname-given over 7 years ago

I am inserting a content element "Text & Media" (fsc) and add text to the field "Text" in tab "General". After that I mark a word in the textarea and click on the link button. In the link window I choose a CSS class in field "Style" and select a page or whatever. This inserts the following code:

<a href="t3://page?uid=2" class="external-link">Link</a>

Now viewing the "normal" website the link shows up as:

<a href="/link/">Link</a>

So the CSS class is removed.

Interesting part is, that the same happens, even when I uninstall the RTE (rtehtmlarea). In the frontend the class does not show up.

Actions #5

Updated by Riccardo De Contardi over 7 years ago

I tried with the latest master and RTE, and I was not able to reproduce the problem...

@Chris could you try with the latest master? Or try the patch attached to #79896 ?

Actions #6

Updated by Chris no-lastname-given over 7 years ago

I can confirm, that this issue is gone with the latest master and everything works like it it supposed to.

This ticket can be closed.

Actions #7

Updated by Riccardo De Contardi over 7 years ago

  • Status changed from Needs Feedback to Closed

thank you for your quick answer. Closed.

Actions

Also available in: Atom PDF