From 15adbdcdd58cd855d417a8a2375dd1c0781e12f4 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Fri, 10 Mar 2017 12:06:15 -0500 Subject: [PATCH] FEATURE: new template parameters for notification emails that can be used in links: topic_title_url_encoded and site_title_url_encoded --- app/mailers/user_notifications.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/mailers/user_notifications.rb b/app/mailers/user_notifications.rb index 5c4ef82c67c..ad73c45a9ed 100644 --- a/app/mailers/user_notifications.rb +++ b/app/mailers/user_notifications.rb @@ -427,6 +427,7 @@ class UserNotifications < ActionMailer::Base email_opts = { topic_title: title, + topic_title_url_encoded: URI.encode(title), message: message, url: post.url, post_id: post.id, @@ -447,6 +448,7 @@ class UserNotifications < ActionMailer::Base html_override: html, site_description: SiteSetting.site_description, site_title: SiteSetting.title, + site_title_url_encoded: URI.encode(SiteSetting.title), style: :notification, locale: locale }