From f3124e5472fb2734d08ef5b8a50c391670be3479 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Fri, 26 Oct 2018 22:42:47 +0100 Subject: [PATCH] Explicitly add :host to actionmailer config --- config/environments/production.rb | 2 +- config/environments/staging.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 0ee6be4930..88c743071a 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -31,7 +31,7 @@ Openfoodnetwork::Application.configure do config.force_ssl = true # Use https when creating links in emails - config.action_mailer.default_url_options = { protocol: 'https' } + config.action_mailer.default_url_options = { protocol: 'https', host: Spree::Config[:site_url] } # See everything in the log (default is :info) config.log_level = :info diff --git a/config/environments/staging.rb b/config/environments/staging.rb index 9c7a40e8e1..f43d42f998 100644 --- a/config/environments/staging.rb +++ b/config/environments/staging.rb @@ -31,7 +31,7 @@ Openfoodnetwork::Application.configure do config.force_ssl = true # Use https when creating links in emails - config.action_mailer.default_url_options = { protocol: 'https' } + config.action_mailer.default_url_options = { protocol: 'https', host: Spree::Config[:site_url] } # See everything in the log (default is :info) # config.log_level = :debug