Thanks to visit codestin.com
Credit goes to github.com

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

[WebProfilerBundle] Replay referer URL #28936

merged 1 commit into from
Oct 21, 2018

Conversation

ro0NL
Copy link
Contributor

@ro0NL ro0NL commented Oct 20, 2018

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #26226
License MIT
Doc PR symfony/symfony-docs#...

For non GET/HEAD requests (e.g. POST) that have a referer URL; allow to replay it. And thereby fix the missing navigation piece to get back to your application.

Default

image

On hover

image

@fabpot
Copy link
Member

fabpot commented Oct 21, 2018

Thank you @ro0NL.

@fabpot fabpot merged commit 9020d49 into symfony:master Oct 21, 2018
fabpot added a commit that referenced this pull request Oct 21, 2018
This PR was merged into the 4.2-dev branch.

Discussion
----------

[WebProfilerBundle] Replay referer URL

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | #26226
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

For non GET/HEAD requests (e.g. POST) that have a referer URL; allow to replay it. And thereby fix the missing navigation piece to get back to your application.

Default

![image](https://user-images.githubusercontent.com/1047696/47259042-3c86ea80-d4a4-11e8-99f7-c3941beaa72c.png)

On hover

![image](https://user-images.githubusercontent.com/1047696/47259048-54f70500-d4a4-11e8-9e44-e20121f5b04f.png)

Commits
-------

9020d49 [WebProfilerBundle] Replay referer URL
@ro0NL ro0NL deleted the referer branch October 21, 2018 07:07
@ostrolucky
Copy link
Contributor

I really don't like "replay" terminology. It doesn't replay anything, it just goes to link.

@ro0NL
Copy link
Contributor Author

ro0NL commented Oct 21, 2018

@ostrolucky it's not "just" a link, it's the referer; the origin of this profile. As we cant replicate the same profile (method is not "safe"), we - the user - "replay" it. That's my reasoning at least ;)

My original idea was Replay _from_ referer URL, but i shortened it a bit.

Of course we can also simply label it Back to referer URL and be more straightforward about it.

@javiereguiluz thoughts?

@ostrolucky
Copy link
Contributor

Yes, go to referer URL or back to referer URL is much better

@fabpot
Copy link
Member

fabpot commented Oct 22, 2018

Actually, I agree with @ostrolucky "back to referer URL" sounds much better to me" and more accurate.

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

nicolas-grekas added a commit that referenced this pull request Oct 23, 2018
This PR was squashed before being merged into the 4.2-dev branch (closes #28953).

Discussion
----------

[WebProfilerBundle] Reword referer link

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | #28936 (comment), #28936 (comment)
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

![image](https://user-images.githubusercontent.com/1047696/47310273-e6967c00-d636-11e8-827a-72f8f4ca894b.png)

Commits
-------

a5313ab [WebProfilerBundle] Reword referer link
@nicolas-grekas nicolas-grekas modified the milestones: next, 4.2 Nov 1, 2018
This was referenced Nov 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants