diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/http_client.html.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/http_client.html.twig
index 68716153da..8b9595142e 100644
--- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/http_client.html.twig
+++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/http_client.html.twig
@@ -54,6 +54,18 @@
{% else %}
Requests
{% for trace in client.traces %}
+ {% set profiler_token = '' %}
+ {% set profiler_link = '' %}
+ {% if trace.info.response_headers is defined %}
+ {% for header in trace.info.response_headers %}
+ {% if header matches '/^x-debug-token: .*$/i' %}
+ {% set profiler_token = (header.getValue | slice('x-debug-token: ' | length)) %}
+ {% endif %}
+ {% if header matches '/^x-debug-token-link: .*$/i' %}
+ {% set profiler_link = (header.getValue | slice('x-debug-token-link: ' | length)) %}
+ {% endif %}
+ {% endfor %}
+ {% endif %}
@@ -66,6 +78,11 @@
{{ profiler_dump(trace.options, maxDepth=1) }}
{% endif %}
+ {% if profiler_token and profiler_link %}
+
+ Profile
+ |
+ {% endif %}
@@ -85,6 +102,11 @@
{{ profiler_dump(trace.info, maxDepth=1) }}
|
+ {% if profiler_token and profiler_link %}
+
+ {{ profiler_token }}
+ |
+ {% endif %}