Skip to content

Commit

Permalink
fix: fix /ecoscore redirect (#7392)
Browse files Browse the repository at this point in the history
for non french countries
  • Loading branch information
alexgarel authored Sep 26, 2022
1 parent 6cb9c05 commit fe266f2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion conf/nginx/sites-available/off
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,10 @@ server {
}

location = /ecoscore {
return 301 https://$host/eco-score-l-impact-environnemental-des-produits-alimentaires;
if ( $host ~ "^fr\..*" ) {
return 301 https://$host/eco-score-l-impact-environnemental-des-produits-alimentaires;
}
return 301 https://$host/eco-score-the-environmental-impact-of-food-products;
}

# 2022-06-13 Redirect press pages to blog post about the new Flutter app
Expand Down

0 comments on commit fe266f2

Please sign in to comment.