mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
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:
@@ -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")
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user