Skip to content

Commit 87423cd

Browse files
committed
bug symfony#20646 Maintain the selected panel when redirecting to another profile (javiereguiluz)
This PR was merged into the 3.1 branch. Discussion ---------- Maintain the selected panel when redirecting to another profile | Q | A | ------------- | --- | Branch? | 3.1 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | symfony#20637 | License | MIT | Doc PR | - Commits ------- de7b326 Maintain the selected panel when redirecting to another profile
2 parents 0da570c + de7b326 commit 87423cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
{%- else -%}
4040
{{ redirect_route }}
4141
{%- endif %}
42-
(<a href="{{ path('_profiler', { token: redirect.token }) }}">{{ redirect.token }}</a>)
42+
(<a href="{{ path('_profiler', { token: redirect.token, panel: app.request.query.get('panel', 'request') }) }}">{{ redirect.token }}</a>)
4343
</dd>
4444
</dl>
4545
{%- endif %}

0 commit comments

Comments
 (0)