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: rest api with ?locale=* doesn't return full localized data #10619

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

r1tsuu
Copy link
Member

@r1tsuu r1tsuu commented Jan 16, 2025

Fixes #9712

Comment on lines -81 to -85

// Override if query params are present, in order to respect HTTP method override
if (query.locale) {
locale = query.locale as string
}
Copy link
Member Author

@r1tsuu r1tsuu Jan 16, 2025

Choose a reason for hiding this comment

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

this check isn't needed anymore because we already do retrieve it from searchParams.get('locale') which is the same as now we create a new Request object in handleEndpoints when overriding

@r1tsuu r1tsuu requested a review from DanRibbens January 17, 2025 14:41
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.

REST API query using locale=* returns no localized fields at all
1 participant