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
This commit is contained in:
luisramos0
2019-06-04 16:11:23 +01:00
parent c61e7a1672
commit bb1f7fde2f
2 changed files with 0 additions and 4 deletions

View File

@@ -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")

View File

@@ -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