From 04379101e1066f4ca4b5a40ff2a977db53181ce5 Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Fri, 9 May 2014 11:34:52 +1000 Subject: [PATCH] Change to new production hostname: openfoodnetwork.org.au --- app/controllers/application_controller.rb | 2 +- app/views/spree/user_mailer/signup_confirmation.text.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 3a4de9aaf6..0d55b82b05 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -40,7 +40,7 @@ class ApplicationController < ActionController::Base # (vic.openfoodnetwork.org) that has the SSL certificate. Redirect all requests to this # domain to avoid showing customers a scary invalid certificate error. def require_certified_hostname - certified_host = "vic.openfoodnetwork.org" + certified_host = "openfoodnetwork.org.au" if Rails.env.production? && request.host != certified_host redirect_to "http://#{certified_host}#{request.fullpath}" diff --git a/app/views/spree/user_mailer/signup_confirmation.text.erb b/app/views/spree/user_mailer/signup_confirmation.text.erb index c6e57efc8a..295b4c9e8f 100644 --- a/app/views/spree/user_mailer/signup_confirmation.text.erb +++ b/app/views/spree/user_mailer/signup_confirmation.text.erb @@ -2,7 +2,7 @@ Hello, Welcome to Australia's Open Food Network! Your login email is <%= @user.email %> -You can go online and start shopping through food hubs and local producers you like at vic.openfoodnetwork.org.au +You can go online and start shopping through food hubs and local producers you like at http://openfoodnetwork.org.au We welcome all your questions and feedback; you can use the Send Feedback button on the site or email us at hello@openfoodnetwork.org