Skip to content

Commit

Permalink
fix: nutripatrol URL (#11115)
Browse files Browse the repository at this point in the history
fixes #11097

---------

Co-authored-by: Open Food Facts Bot <contact@openfoodfacts.org>
  • Loading branch information
stephanegigandet and Open Food Facts Bot authored Dec 13, 2024
1 parent 3854b77 commit 8c1d123
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ ODOO_CRM_PASSWORD=

# No need to have it running, it's just to compose a URL
# you might also use the .net service
NUTRIPATROL_URL=nutripatrol.localhost
NUTRIPATROL_URL=http://nutripatrol.localhost

BUILD_CACHE_REPO=openfoodfacts/openfoodfacts-build-cache

Expand Down
1 change: 1 addition & 0 deletions lib/ProductOpener/ConfigEnv.pm
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@ BEGIN {
use vars @EXPORT_OK; # no 'my' keyword for these

$nutripatrol_url = $ENV{NUTRIPATROL_URL};
$nutripatrol_url =~ s/\///; # remove trailing slash if there is one

1;
Original file line number Diff line number Diff line change
Expand Up @@ -3514,7 +3514,7 @@ <h2 class="panel_title_card text-medium">Report a problem</h2>

<div>
<a class="button small action-report_product_to_nutripatrol"
href="nutripatrol.localhost/flag/product/?barcode=0200000000235&source=web&flavor=off">
href="http:/nutripatrol.localhost/flag/product/?barcode=0200000000235&source=web&flavor=off">
Report this product to our moderators
</a>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3514,7 +3514,7 @@ <h2 class="panel_title_card text-medium">Report a problem</h2>

<div>
<a class="button small action-report_product_to_nutripatrol"
href="nutripatrol.localhost/flag/product/?barcode=0200000000235&source=web&flavor=off">
href="http:/nutripatrol.localhost/flag/product/?barcode=0200000000235&source=web&flavor=off">
Report this product to our moderators
</a>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4690,7 +4690,7 @@ <h2 class="panel_title_card text-medium">Report a problem</h2>

<div>
<a class="button small action-report_product_to_nutripatrol"
href="nutripatrol.localhost/flag/product/?barcode=0200000000034&source=web&flavor=off">
href="http:/nutripatrol.localhost/flag/product/?barcode=0200000000034&source=web&flavor=off">
Report this product to our moderators
</a>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3657,7 +3657,7 @@ <h2 class="panel_title_card text-medium">Signaler un problème</h2>

<div>
<a class="button small action-report_product_to_nutripatrol"
href="nutripatrol.localhost/flag/product/?barcode=3300000000002&source=web&flavor=off">
href="http:/nutripatrol.localhost/flag/product/?barcode=3300000000002&source=web&flavor=off">
Report this product to our moderators
</a>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3671,7 +3671,7 @@ <h2 class="panel_title_card text-medium">Signaler un problème</h2>

<div>
<a class="button small action-report_product_to_nutripatrol"
href="nutripatrol.localhost/flag/product/?barcode=3300000000001&source=web&flavor=off">
href="http:/nutripatrol.localhost/flag/product/?barcode=3300000000001&source=web&flavor=off">
Report this product to our moderators
</a>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4245,7 +4245,7 @@ <h2 class="panel_title_card text-medium">Report a problem</h2>

<div>
<a class="button small action-report_product_to_nutripatrol"
href="nutripatrol.localhost/flag/product/?barcode=3300000000001&source=web&flavor=off">
href="http:/nutripatrol.localhost/flag/product/?barcode=3300000000001&source=web&flavor=off">
Report this product to our moderators
</a>
</div>
Expand Down

0 comments on commit 8c1d123

Please sign in to comment.