8000 [WebProfilerBundle] Replay referer URL by ro0NL · Pull Request #28936 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[WebProfilerBundle] Replay referer URL #28936

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 21, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
<a href="{{ profile.url }}">{{ profile.url }}</a>
{% else %}
{{ profile.url }}
{% set referer = profile.collector('request').requestheaders.get('referer') %}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this code does not handle the case where the request collector is not registered, while this case was handled previously (see the handling of status code)

{% if referer %}
<a href="{{ referer }}" class="referer">Replay referer URL</a>
{% endif %}
{% endif %}
</h2>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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); }
Expand Down
0