[WebProfilerBundle] Replay referer URL

This commit is contained in:
Roland Franssen 2018-10-20 20:06:30 +02:00
parent 4d757b5382
commit 9020d49765
2 changed files with 13 additions and 0 deletions

View File

@ -16,6 +16,10 @@
<a href="{{ profile.url }}">{{ profile.url }}</a>
{% else %}
{{ profile.url }}
{% set referer = profile.collector('request').requestheaders.get('referer') %}
{% if referer %}
<a href="{{ referer }}" class="referer">Replay referer URL</a>
{% endif %}
{% endif %}
</h2>

View File

@ -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); }