Fix toolbar load when GET params are present in "_wdt" route
When using a custom router that inject GET parameters, eg: ``` # services.yaml parameters: # Replace default url generator service router.options.generator_base_class: Combodo\iTop\Portal\Routing\UrlGenerator ``` The path generated by the toolbar JS is HTML entity encoded which breaks the JS call (`&` becomes `&`).
This commit is contained in:
parent
5328c4b552
commit
5309e64949
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
Sfjs.load(
|
Sfjs.load(
|
||||||
'sfwdt{{ token }}',
|
'sfwdt{{ token }}',
|
||||||
'{{ path("_wdt", { "token": token }) }}',
|
'{{ path("_wdt", { "token": token })|escape('js') }}',
|
||||||
function(xhr, el) {
|
function(xhr, el) {
|
||||||
|
|
||||||
/* Evaluate embedded scripts inside the toolbar */
|
/* Evaluate embedded scripts inside the toolbar */
|
||||||
|
Reference in New Issue
Block a user