From fc4cd517fda1ea4a2286b16cd394e76c1ee885ab Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Fri, 26 Jun 2015 12:00:13 +1000 Subject: [PATCH] Redirect legacy enterprise path to home #571 --- config/routes.rb | 1 + 1 file changed, 1 insertion(+) 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("/")