Skip to content

Commit

Permalink
fix: 5617 - share link to correct Oxf server
Browse files Browse the repository at this point in the history
  • Loading branch information
monsieurtanuki committed Nov 9, 2024
1 parent b9d57da commit fc5eb43
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ class _ProductShareButton extends StatelessWidget {
// We need to provide a sharePositionOrigin to make the plugin work on ipad
final RenderBox? box = context.findRenderObject() as RenderBox?;
final String url = 'https://'
'${ProductQuery.getCountry().offTag}.openfoodfacts.org'
'${ProductQuery.getCountry().offTag}.${(product.productType ?? ProductType.food).getDomain()}.org'
'/product/${product.barcode}';
Share.share(
appLocalizations.share_product_text(url),
Expand Down

0 comments on commit fc5eb43

Please sign in to comment.