mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Remove deprecated about_us page and add redirect
This commit is contained in:
@@ -7,7 +7,4 @@ class HomeController < BaseController
|
||||
@num_users = Spree::User.joins(:orders).merge(Spree::Order.complete).count('DISTINCT spree_users.*')
|
||||
@num_orders = Spree::Order.complete.count
|
||||
end
|
||||
|
||||
def about_us
|
||||
end
|
||||
end
|
||||
|
||||
@@ -6,6 +6,7 @@ Openfoodnetwork::Application.routes.draw do
|
||||
get "/enterprises/:permalink", to: redirect("/")
|
||||
get "/products", to: redirect("/")
|
||||
get "/t/products/:id", to: redirect("/")
|
||||
get "/about_us", to: redirect(ContentConfig.footer_about_url)
|
||||
|
||||
get "/#/login", to: "home#index", as: :spree_login
|
||||
get "/login", to: redirect("/#/login")
|
||||
@@ -115,8 +116,6 @@ Openfoodnetwork::Application.routes.draw do
|
||||
end
|
||||
end
|
||||
|
||||
get "about_us", :controller => 'home', :action => "about_us"
|
||||
|
||||
namespace :open_food_network do
|
||||
resources :cart do
|
||||
post :add_variant
|
||||
|
||||
Reference in New Issue
Block a user