You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ($host = donner.openfoodfacts.org) { return 302 https://www.helloasso.com/associations/open-food-facts/collectes/aidez-open-food-facts-a-ameliorer-l-alimentation-de-tous ; }
if ($host = donate.openfoodfacts.org) { return 302 https://www.helloasso.com/associations/open-food-facts/formulaires/1/widget/en ; }
In my opinion, the nginx configuration is a really bad place to put this configuration for several reasons
It's not consistent with the rest of the application: Internationalized links are stored in .po files or based on some filename throughout ProductOpener, and ProductOpener is the one instance that should be responsible to dispatch between those files.
ProductOpener used to be the one source responsible to display HTML files of the /html directory in the git repository - inconsistent behaviour
Why would the don subdomain be used for the French donne URL instead of the English donate page?
Why would a single country need four different links for donation pages/URLs?!
If this is purely for promotional purposes, a separate URL shortener (ie. host it in Docker!) might be a better option.
We support over 100 languages and nearly 300 countries. If we acted fairly, we'd need a separate subdomain for every countries and/or languages donation page. I don't need to explain that this would be a madness to configure?
Generally speaking, there's no real advantage to a URL donnez.openfoodfacts.org instead of fr.openfoodfacts.org/donate (or fr.openfoodfacts.org/donnez if you must). If a shorter URL is required, an actual URL shortener could be used instead.
The text was updated successfully, but these errors were encountered:
Basically, we've tried handing over responsability of translating links to translators, but the current system is very error prone, and we pedaled back.
Also, URLs are forever. Thus the more centralized solution.
There's a proposal to solve URLs in static content, which would be a lifechanger for me, and improve the feeling of localisation by enabling stable, translated urls in a reliable way (and we could extend that to common.pot). #1818
The nginx config for off contains 4 country specific links to a French donation page
openfoodfacts-server/conf/nginx/sites-available/off
Lines 111 to 114 in cb03bcc
openfoodfacts-server/conf/nginx/sites-available/off
Line 115 in cb03bcc
openfoodfacts-server/conf/nginx/sites-available/off
Lines 211 to 264 in cb03bcc
Additionally, the redirects are not even synced for several domains, as seen here
openfoodfacts-server/conf/nginx/sites-available/off
Lines 362 to 363 in cb03bcc
openfoodfacts-server/conf/nginx/sites-available/off
Lines 542 to 543 in cb03bcc
In my opinion, the nginx configuration is a really bad place to put this configuration for several reasons
/html
directory in the git repository - inconsistent behaviourdon
subdomain be used for the Frenchdonne
URL instead of the Englishdonate
page?donnez.openfoodfacts.org
instead offr.openfoodfacts.org/donate
(orfr.openfoodfacts.org/donnez
if you must). If a shorter URL is required, an actual URL shortener could be used instead.The text was updated successfully, but these errors were encountered: