Skip to content

Commit

Permalink
Fix toolbar load when GET params are present in "_wdt" route
Browse files Browse the repository at this point in the history
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 `&`).
  • Loading branch information
Molkobain committed Jul 8, 2019
1 parent 5328c4b commit 5309e64
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -15,7 +15,7 @@
Sfjs.load(
'sfwdt{{ token }}',
'{{ path("_wdt", { "token": token }) }}',
'{{ path("_wdt", { "token": token })|escape('js') }}',
function(xhr, el) {
/* Evaluate embedded scripts inside the toolbar */
Expand Down

0 comments on commit 5309e64

Please sign in to comment.