Skip to content

Commit 5ed4b8a

Browse files
committed
Profiler: Add slash if there is none between host and path
1 parent 6a2721c commit 5ed4b8a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ The change log describes what is "Added", "Removed", "Changed" or "Fixed" betwee
66

77
- If captured_body_length is set to 0 (default value), show a special message rather than the
88
generic message `This message has no captured body`.
9+
- Fixed: Add slash in profiler if there is none between host and path
910

1011
# 1.27.0 - 2022-07-25
1112

src/Resources/views/stack.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
{% if stack.requestPort not in [null, 80, 443] %}
1515
<span class="httplug-port">:{{ stack.requestPort }}</span>
1616
{% endif %}
17-
<span class="httplug-target">{{ stack.requestTarget }}</span>
17+
<span class="httplug-target">{{ (stack.requestTarget|default('/') starts with '/' ? '' : '/') ~ stack.requestTarget }}</span>
1818
</div>
1919
{% endapply %}
2020
<div>

0 commit comments

Comments
 (0)