diff --git a/config/routes.rb b/config/routes.rb index 02d8717f6c..fb63fdf7b8 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -3,6 +3,7 @@ Openfoodnetwork::Application.routes.draw do # Redirects from old URLs avoid server errors and helps search engines get "/enterprises", to: redirect("/") + get "/enterprises/:permalink", to: redirect("/") get "/products", to: redirect("/") get "/t/products/:id", to: redirect("/")