diff --git a/CHANGELOG.md b/CHANGELOG.md index 63ec904f..bb6feb1b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ The change log describes what is "Added", "Removed", "Changed" or "Fixed" betwee - If captured_body_length is set to 0 (default value), show a special message rather than the generic message `This message has no captured body`. +- Fixed: Add slash in profiler if there is none between host and path # 1.27.0 - 2022-07-25 diff --git a/src/Resources/views/stack.html.twig b/src/Resources/views/stack.html.twig index b34251f1..f2984743 100644 --- a/src/Resources/views/stack.html.twig +++ b/src/Resources/views/stack.html.twig @@ -14,7 +14,7 @@ {% if stack.requestPort not in [null, 80, 443] %} :{{ stack.requestPort }} {% endif %} - {{ stack.requestTarget }} + {{ (stack.requestTarget|default('/') starts with '/' ? '' : '/') ~ stack.requestTarget }} {% endapply %}