Issue Bug Closed

#90753widget autocomplete url has still wrong masking with &

Markus Dübbert 03/13/20, 06:26 updated 03/15/20, 12:59

Description

i still get such an url:

?id=73&type=7076&fluid-widget-id=a82f5243badf6301daf99a055366e145&action=autocomplete&term=test

it does not work because of the “&” masking chars.

TYPO3 9.5.14:

in
sysext/fluid/Resources/Private/Templates/ViewHelpers/Widget/Autocomplete

index.html

has this code:
@<script type="text/javascript"><br />jQuery(function() {<br /> jQuery(&#8220;#{id}&#8221;).autocomplete(<f:format.raw value="{" /><br /> source: &#8220;{f:widget.uri(action:&#8216;autocomplete&#8217;, ajax: 1)}&#8221;,<br /> minLength: 2<br /> });<br />});<br /></script>@

must this not be?:

<script type="text/javascript">
jQuery(function() {
jQuery("#{id}").autocomplete(<f:format.raw value="{" />
source: "{f:widget.uri(action:'autocomplete', ajax: 1)->f:format.raw()}",
minLength: 2
});
});
</script>

related:
https://forge.typo3.org/issues/84575

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.