diff --git a/config/routes.rb b/config/routes.rb index b0cf6c6f15..be74e71469 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -3,7 +3,12 @@ Openfoodnetwork::Application.routes.draw do get "/#/login", to: "home#index", as: :spree_login - get "/map", to: "map#index", as: :map + + if Rails.env.production? + get "/map", to: "home#index", as: :map + else + get "/map", to: "map#index", as: :map + end resource :shop, controller: "shop" do get :products