Skip to content
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

Fix: Ignore subrequests metadata only in SiteSelector #1275

Merged
merged 4 commits into from Jul 6, 2021

Conversation

BadPixxel
Copy link
Contributor

@BadPixxel BadPixxel commented Feb 11, 2021

Subject

Site selector should not ignore Subrequests, but only metadata override.

If whole site use "host_with_path" or "host_with_path_by_locale", subrequests are rejected by router.

I.e: in the admin: No route found for "GET /en/admin/en/core/get-short-object-description"

I am targeting this branch, because this is a bugfix for 3.X versions.

Related to #1148.

Changelog

### Fixed
- Ignore metadata setup on SiteSelector, not whole site detection.

Site selector should not ignore Subrequests, but only metadata override.

If whole site use "host_with_path" or "host_with_path_by_locale", subrequests are rejected by router. 

I.e in the admin: No route found for "GET /en/admin/en/core/get-short-object-description"
@VincentLanglet VincentLanglet requested a review from a team February 11, 2021 13:03
@BadPixxel
Copy link
Contributor Author

Hi,

Any possibility to see this PR verified soon?

Thx!

@core23
Copy link
Member

core23 commented Feb 28, 2021

Can you provide a test for this?

@VincentLanglet
Copy link
Member

Hi @BadPixxel, are you still interested in this PR ? Could you add a unit test for this ?

@BadPixxel
Copy link
Contributor Author

Hi @VincentLanglet yes still need this PR.
But no time to manage add unit tests up to now. I'll do my best to make it soon.

@BadPixxel
Copy link
Contributor Author

Hi @VincentLanglet, just added few tests for this PR. Let me know if you see something I missed.

VincentLanglet
VincentLanglet previously approved these changes Jul 6, 2021
@VincentLanglet VincentLanglet requested review from a team and core23 July 6, 2021 14:26
core23
core23 previously approved these changes Jul 6, 2021
@BadPixxel BadPixxel dismissed stale reviews from core23 and VincentLanglet via b197fbc July 6, 2021 14:37
@VincentLanglet VincentLanglet merged commit fe5cddb into sonata-project:3.x Jul 6, 2021
@VincentLanglet
Copy link
Member

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants