From 9d5baf12ff6477cd237de261f30d07e9704f1018 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Tue, 10 Feb 2015 22:42:07 +0530 Subject: [PATCH] FIX: set base_url for usage_tips --- app/mailers/user_notifications.rb | 2 +- lib/system_message.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/mailers/user_notifications.rb b/app/mailers/user_notifications.rb index 6e5f60060..310f8cd8f 100644 --- a/app/mailers/user_notifications.rb +++ b/app/mailers/user_notifications.rb @@ -18,7 +18,7 @@ class UserNotifications < ActionMailer::Base build_email(user.email, template: 'user_notifications.signup_after_approval', email_token: opts[:email_token], - new_user_tips: SiteText.text_for(:usage_tips)) + new_user_tips: SiteText.text_for(:usage_tips, base_url: Discourse.base_url)) end def authorize_email(user, opts={}) diff --git a/lib/system_message.rb b/lib/system_message.rb index 95e39e6d1..176298839 100644 --- a/lib/system_message.rb +++ b/lib/system_message.rb @@ -50,7 +50,7 @@ class SystemMessage site_name: SiteSetting.title, username: @recipient.username, user_preferences_url: "#{Discourse.base_url}/users/#{@recipient.username_lower}/preferences", - new_user_tips: SiteText.text_for(:usage_tips), + new_user_tips: SiteText.text_for(:usage_tips, base_url: Discourse.base_url), site_password: "", base_url: Discourse.base_url, }