From bb1f7fde2f0f14720a2f5ea058a44a8aea02f888 Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Tue, 4 Jun 2019 16:11:23 +0100 Subject: [PATCH] Remove unused routes related to taxons t/products was already an old route 4 years ago and t/*id is not currently working in master --- config/routes.rb | 1 - config/routes/spree.rb | 3 --- 2 files changed, 4 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index b7ec2a3105..ac889a2d52 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -5,7 +5,6 @@ Openfoodnetwork::Application.routes.draw do 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) get "/login", to: redirect("/#/login") diff --git a/config/routes/spree.rb b/config/routes/spree.rb index dd13ef74da..cc221fc8d0 100644 --- a/config/routes/spree.rb +++ b/config/routes/spree.rb @@ -89,9 +89,6 @@ Spree::Core::Engine.routes.prepend do resources :products - # route globbing for pretty nested taxon and product paths - get '/t/*id', :to => 'taxons#show', :as => :nested_taxons - get '/unauthorized', :to => 'home#unauthorized', :as => :unauthorized get '/content/cvv', :to => 'content#cvv', :as => :cvv get '/content/*path', :to => 'content#show', :as => :content