From 5ccae9cfab8705c44d795f17bb6956f43d5d8bea Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Fri, 21 Aug 2015 15:18:31 +1000 Subject: [PATCH] Redirecting /products/:id to / --- config/routes.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/config/routes.rb b/config/routes.rb index 578f7cfec1..b5cd4612df 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -4,6 +4,7 @@ Openfoodnetwork::Application.routes.draw do # Redirects from old URLs avoid server errors and helps search engines get "/enterprises", to: redirect("/") get "/products", to: redirect("/") + get "/products/:id", to: redirect("/") get "/t/products/:id", to: redirect("/") get "/about_us", to: redirect(ContentConfig.footer_about_url)