Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[WebProfilerBundle] fix wrong url when base path is the index#28183

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:3.4fromismail1432:webprofiler-wrong-url
Sep 4, 2018
Merged

[WebProfilerBundle] fix wrong url when base path is the index#28183

fabpot merged 1 commit intosymfony:3.4fromismail1432:webprofiler-wrong-url
Sep 4, 2018

Conversation

@ismail1432
Copy link
Contributor

QA
Branch?>= 3.4
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#27846
LicenseMIT

TheFileLinkFormatter create a wrong url because it's usinggetBaseUrl that render the script filename, the problem is that in this class it's used twice, first time with thegetBaseUrl method and another time with thegenerate method. Just switch togetBasePath solve the issue.
WDYT ?

@ismail1432ismail1432 changed the title[WebProfiler] Wrong URL file[WebProfilerBundle] fix wrong url when base path is the indexAug 11, 2018
@nicolas-grekasnicolas-grekas added this to the3.4 milestoneAug 19, 2018
@nicolas-grekasnicolas-grekas changed the base branch frommaster to3.4August 19, 2018 09:32
@nicolas-grekasnicolas-grekas changed the base branch from3.4 tomasterAugust 19, 2018 09:32
@nicolas-grekas
Copy link
Member

If this is for 3.4, can you rebase + retarget 3.4 please?

@ismail1432ismail1432 changed the base branch frommaster to3.4August 26, 2018 10:40
@ismail1432ismail1432 changed the base branch from3.4 tomasterAugust 26, 2018 10:40
Copy link
Member

@fabpotfabpot left a comment

Choose a reason for hiding this comment

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

for 3.4

@fabpotfabpot changed the base branch frommaster to3.4September 4, 2018 07:18
@fabpot
Copy link
Member

Thank you@ismail1432.

@fabpotfabpot merged commit897615e intosymfony:3.4Sep 4, 2018
fabpot added a commit that referenced this pull requestSep 4, 2018
…dex (ismail1432)This PR was submitted for the master branch but it was merged into the 3.4 branch instead (closes#28183).Discussion----------[WebProfilerBundle] fix wrong url when base path is the index| Q             | A| ------------- | ---| Branch?       | >= 3.4| Bug fix?      | yes| New feature?  | no <!-- don't forget to update src/**/CHANGELOG.md files -->| BC breaks?    | no| Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->| Fixed tickets |#27846   <!-- #-prefixed issue number(s), if any -->| License       | MITThe `FileLinkFormatter` create a wrong url because it's using [getBaseUrl](https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpFoundation/Request.php#L870) that render the script filename, the problem is that in this class it's used twice, first time with the [getBaseUrl method](https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpKernel/Debug/FileLinkFormatter.php#L99) and another time with the [generate method](https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpKernel/Debug/FileLinkFormatter.php#L77). Just switch to `getBasePath` solve the issue.WDYT ?Commits-------897615e change baseUrl to basePath to fix wrong profiler url
This was referencedSep 30, 2018
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

4 participants

@ismail1432@nicolas-grekas@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp