We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In openfoodfacts-web, symlinks enable pointing some urls to same content.
Sometime it's better to have redirects, for url that changed for example.
We have a lot of redirects right now directly in the nginx configuration, (see https://github.com/openfoodfacts/search-a-licious/)
It would be better if all this can be handled naturally in openfoodfacts-web.
Handle this case by looking at files in openfoodfacts-web.
I think the best would be to have a file lang/texts/<lc>/<location>.redirect and inside put a URI to redirect to.
lang/texts/<lc>/<location>.redirect
As we do for html files, at startup, we should gather those redirects, so that in display content function we are able to issue the right redirect.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Problem
In openfoodfacts-web, symlinks enable pointing some urls to same content.
Sometime it's better to have redirects, for url that changed for example.
We have a lot of redirects right now directly in the nginx configuration, (see https://github.com/openfoodfacts/search-a-licious/)
It would be better if all this can be handled naturally in openfoodfacts-web.
Proposed solution
Handle this case by looking at files in openfoodfacts-web.
I think the best would be to have a file
lang/texts/<lc>/<location>.redirect
and inside put a URI to redirect to.As we do for html files, at startup, we should gather those redirects, so that in display content function we are able to issue the right redirect.
The text was updated successfully, but these errors were encountered: