[BUGFIX] Don't HSC URI in JS in BE paginate VH 83/48283/3
authorJigal van Hemert <jigal.van.hemert@typo3.org>
Tue, 24 May 2016 21:41:05 +0000 (23:41 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 25 May 2016 20:43:23 +0000 (22:43 +0200)
The URI is HSC'd by default. Using the output unformatted produces
a correct URI for use inside JS.

Resolves: #76289
Releases: master
Change-Id: Iec7b9aaa0a26ec9acfe6ba49924373965a989a2f
Reviewed-on: https://review.typo3.org/48283
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/fluid/Resources/Private/Templates/ViewHelpers/Be/Widget/Paginate/Index.html

index 3dd127a..a45e4f3 100644 (file)
@@ -58,7 +58,7 @@
                                        <form id="paginator-form-{position}" onsubmit="goToPage{position}(this); return false;" style="display:inline;">
                                        <script type="text/javascript">
                                                function goToPage{position}(formObject) {
-                                                       var url = '{f:widget.uri(arguments:{currentPage: 987654321})}';
+                                                       var url = '{f:widget.uri(arguments:{currentPage: 987654321}) -> f:format.raw()}';
                                                        var page = formObject.elements['paginator-target-page'].value;
                                                        if (page > {pagination.numberOfPages}) {
                                                                page = {pagination.numberOfPages};