diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/layout.html.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/layout.html.twig index 5c990bbdb806f..cd1b13a7e68ad 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/layout.html.twig +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/layout.html.twig @@ -16,6 +16,10 @@ {{ profile.url }} {% else %} {{ profile.url }} + {% set referer = profile.collector('request').requestheaders.get('referer') %} + {% if referer %} + Replay referer URL + {% endif %} {% endif %} diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/profiler.css.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/profiler.css.twig index bae9317229515..122f95f26929c 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/profiler.css.twig +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/profiler.css.twig @@ -585,10 +585,19 @@ tr.status-warning td { font-size: 21px; margin: 0; text-decoration: none; + vertical-align: middle; } #summary h2 a:hover { text-decoration: underline; } +#summary h2 a.referer { + margin-left: .5em; + font-size: 75%; + color: rgba(255, 255, 255, 0.5); +} +#summary h2 a.referer:before { + content: '\1F503\00a0'; +} #summary .status-success { background: var(--color-success); } #summary .status-warning { background: var(--color-warning); }