10000 bug #54004 [WebProfilerBundle] disable turbo in web profiler toolbar … · symfony/symfony@1ba6fe3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1ba6fe3

Browse files
bug #54004 [WebProfilerBundle] disable turbo in web profiler toolbar to avoid link prefetching (davidgorges)
This PR was merged into the 5.4 branch. Discussion ---------- [WebProfilerBundle] disable turbo in web profiler toolbar to avoid link prefetching | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | [symfony/ux#1520](symfony/ux#1520) | License | MIT This adds `data-turbo="false"` to the web profiler toolbar html. It [has been added already a while ago](#49226) to the mini-toolbar, and there is already the old `data-no-turbolink` attribute present. This [fixes an issue](symfony/ux#1520) with prefetching links in Turbo 8, which causes the Ajax pane to behave weirdly and can even cause unwanted logouts (via the logout link inside the security pane). Commits ------- 9750a6b [WebProfilerBundle] disable turbo in web profiler toolbar to avoid link prefetching
2 parents ed7d7aa + 9750a6b commit 1ba6fe3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</div>
77
<div id="sfToolbarClearer-{{ token }}" class="sf-toolbar-clearer"></div>
88

9-
<div id="sfToolbarMainContent-{{ token }}" class="sf-toolbarreset clear-fix" data-no-turbolink>
9+
<div id="sfToolbarMainContent-{{ token }}" class="sf-toolbarreset clear-fix" data-no-turbolink data-turbo="false">
1010
{% for name, template in templates %}
1111
{% if block('toolbar', template) is defined %}
1212
{% with {

0 commit comments

Comments
 (0)
0