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: add missing subdomain to redirect url #6993 #7019

Merged
merged 1 commit into from
Jul 13, 2022
Merged

Conversation

stephanegigandet
Copy link
Contributor

This fixes an issue reported by @monsieurtanuki

When accessing URLs like https://world.openfoodfacts.org/informer/monsieurtanuki/state/to-be-completed.json?lc=fr --> the tags and tagtypes are translated to French, and we are redirected to:

https://world.openfoodfacts.org/informateur/monsieurtanuki/etat/a-completer.json

This works only is the subdomain is also changed.

Fixes #6993

Also helps openfoodfacts/smooth-app#2315 but those URLs are very tied to the website URLs, they are mostly for debugging purposes, apps should use the search API instead to get products matching facets.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 6, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Copy link
Member

@alexgarel alexgarel left a comment

Choose a reason for hiding this comment

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

Good ! I tested it ok on my host.

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.

301 response makes it difficult to implement a feature
2 participants