Skip to content

Fix issue with whitespaces in URL when URL in tab was copied #402

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 4, 2021
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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

The change log describes what is "Added", "Removed", "Changed" or "Fixed" between each release.

# 1.23.1
Copy link
Collaborator

Choose a reason for hiding this comment

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

i usually put an - unreleased on the upcoming version to be more explicit and not confuse people who look at the changelog on github and wonder why they did not get it.

- Fix issue with whitespaces in URL when URL in tab was copied

# 1.23.0 - 2021-08-30

- Changed the way request/response body is displayed in profiler. symfony/var-dumper is used now.
Expand Down
12 changes: 7 additions & 5 deletions src/Resources/views/stack.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@
{% endif %}
<span class="label httplug-method httplug-method-{{ stack.requestMethod|lower }}">{{ stack.requestMethod }}</span>
</div>
<div class="label httplug-stack-header-target">
<span class="httplug-scheme">{{ stack.requestScheme }}://</span>
<span class="httplug-host">{{ stack.requestHost }}</span>
<span class="httplug-target">{{ stack.requestTarget }}</span>
</div>
{% spaceless %}
<div class="label httplug-stack-header-target">
<span class="httplug-scheme">{{ stack.requestScheme }}://</span>
<span class="httplug-host">{{ stack.requestHost }}</span>
<span class="httplug-target">{{ stack.requestTarget }}</span>
</div>
{% endspaceless %}
<div>
<span class="label httplug-duration">{{ stack.duration|number_format }} ms</span>
{% if stack.responseCode >= 400 and stack.responseCode <= 599 %}
Expand Down