From d40733d447e1840336114b98d74e7edafabf55df Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Sun, 7 Aug 2016 10:24:07 +1000 Subject: [PATCH] Add redirects to global site for /connect, /learn --- Gemfile.lock | 3 --- config/routes.rb | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 2a10493f3e..a645196fc5 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -728,8 +728,5 @@ DEPENDENCIES wicked_pdf wkhtmltopdf-binary -RUBY VERSION - ruby 2.1.5p273 - BUNDLED WITH 1.12.5 diff --git a/config/routes.rb b/config/routes.rb index e625cca37b..5f37bbe831 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -20,6 +20,10 @@ Openfoodnetwork::Application.routes.draw do get "/register", to: "registration#index", as: :registration get "/register/auth", to: "registration#authenticate", as: :registration_auth + # Redirects to global website + get "/connect", to: redirect("https://openfoodnetwork.org/#{ENV['DEFAULT_COUNTRY_CODE'].andand.downcase}/connect/") + get "/learn", to: redirect("https://openfoodnetwork.org/#{ENV['DEFAULT_COUNTRY_CODE'].andand.downcase}/learn/") + resource :shop, controller: "shop" do get :products post :order_cycle