8000 Fix toolbar load when GET params are present in "_wdt" route · symfony/symfony@5309e64 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5309e64

Browse files
authored
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 `&`).
1 parent 5328c4b commit 5309e64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar_js.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
1616
Sfjs.load(
1717
'sfwdt{{ token }}',
18-
'{{ path("_wdt", { "token": token }) }}',
18+
'{{ path("_wdt", { "token": token })|escape('js') }}',
1919
function(xhr, el) {
2020
2121
/* Evaluate embedded scripts inside the toolbar */

0 commit comments

Comments
 (0)
0