Fixed forwarded request data in templates
This commit is contained in:
parent
d1b0301c71
commit
078c8b6b8a
@ -13,7 +13,7 @@
|
|||||||
{% endset %}
|
{% endset %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if collector.forward %}
|
{% if collector.forward|default(false) %}
|
||||||
{% set forward_handler %}
|
{% set forward_handler %}
|
||||||
{% import _self as helper %}
|
{% import _self as helper %}
|
||||||
{{ helper.set_handler(collector.forward.controller) }}
|
{{ helper.set_handler(collector.forward.controller) }}
|
||||||
@ -26,7 +26,7 @@
|
|||||||
<span class="sf-toolbar-status sf-toolbar-status-{{ request_status_code_color }}">{{ collector.statuscode }}</span>
|
<span class="sf-toolbar-status sf-toolbar-status-{{ request_status_code_color }}">{{ collector.statuscode }}</span>
|
||||||
{% if collector.route %}
|
{% if collector.route %}
|
||||||
{% if collector.redirect %}{{ include('@WebProfiler/Icon/redirect.svg') }}{% endif %}
|
{% if collector.redirect %}{{ include('@WebProfiler/Icon/redirect.svg') }}{% endif %}
|
||||||
{% if collector.forward %}{{ include('@WebProfiler/Icon/forward.svg') }}{% endif %}
|
{% if collector.forward|default(false) %}{{ include('@WebProfiler/Icon/forward.svg') }}{% endif %}
|
||||||
<span class="sf-toolbar-label">{{ 'GET' != collector.method ? collector.method }} @</span>
|
<span class="sf-toolbar-label">{{ 'GET' != collector.method ? collector.method }} @</span>
|
||||||
<span class="sf-toolbar-value sf-toolbar-info-piece-additional">{{ collector.route }}</span>
|
<span class="sf-toolbar-value sf-toolbar-info-piece-additional">{{ collector.route }}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
</dl>
|
</dl>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
{% if request_collector and request_collector.forward and request_collector.forward.controller.class is defined -%}
|
{% if request_collector and request_collector.forward|default(false) and request_collector.forward.controller.class is defined -%}
|
||||||
{%- set forward = request_collector.forward -%}
|
{%- set forward = request_collector.forward -%}
|
||||||
{%- set controller = forward.controller -%}
|
{%- set controller = forward.controller -%}
|
||||||
<dl class="metadata">
|
<dl class="metadata">
|
||||||
|
Reference in New Issue
Block a user