[TYPO3-mvc] How to escape square brackets in extbase action links?

Chris Wolff - AERTiCKET AG cwolff at aer.de
Mon Jul 6 11:35:04 CEST 2015


Hi Sebastian,
It sounds like you found a bug. The link view helpers should generate correctly encoded html code.
Please report it: https://forge.typo3.org/projects/typo3cms-core/issues

Regards Chris




-----Ursprüngliche Nachricht-----
Von: typo3-project-typo3v4mvc-bounces at lists.typo3.org [mailto:typo3-project-typo3v4mvc-bounces at lists.typo3.org] Im Auftrag von Sebastian Peine
Gesendet: Sonntag, 5. Juli 2015 11:03
An: typo3-project-typo3v4mvc at lists.typo3.org
Betreff: [TYPO3-mvc] How to escape square brackets in extbase action links?

Hi folks,
I have the following problem in a custom extbase extension:
when I generate links with the f:link.action viewhelper, the generated href attribute reads like this:

home/?tx_myext_myplugin[id]=1&tx_myext_myplugin[action]=show&cHash=8d3d1a11600f17ba6cbdf68e292f206b

The code in my fluid template:
<f:link.action action="show" arguments="{id: id}" title="Show">Show</f:link.action>

The square brackets are not replaced by %5B and %5D and so the w3c validator marks the href as invalid.
Same applies to the action url of the f:form viewhelper.

I know I could rewrite the links with RealURL, but I still would like to know how to properly escape the href attributes

Do I miss some configuration here? Or is this just the way extbase/fluid generates the links?

Thanks for any hints :)
Sebastian
_______________________________________________
TYPO3-project-typo3v4mvc mailing list
TYPO3-project-typo3v4mvc at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc



More information about the TYPO3-project-typo3v4mvc mailing list