FEATURE: new template parameters for notification emails that can be used in links: topic_title_url_encoded and site_title_url_encoded
This commit is contained in:
parent
bc1a6ccb90
commit
15adbdcdd5
|
@ -427,6 +427,7 @@ class UserNotifications < ActionMailer::Base
|
||||||
|
|
||||||
email_opts = {
|
email_opts = {
|
||||||
topic_title: title,
|
topic_title: title,
|
||||||
|
topic_title_url_encoded: URI.encode(title),
|
||||||
message: message,
|
message: message,
|
||||||
url: post.url,
|
url: post.url,
|
||||||
post_id: post.id,
|
post_id: post.id,
|
||||||
|
@ -447,6 +448,7 @@ class UserNotifications < ActionMailer::Base
|
||||||
html_override: html,
|
html_override: html,
|
||||||
site_description: SiteSetting.site_description,
|
site_description: SiteSetting.site_description,
|
||||||
site_title: SiteSetting.title,
|
site_title: SiteSetting.title,
|
||||||
|
site_title_url_encoded: URI.encode(SiteSetting.title),
|
||||||
style: :notification,
|
style: :notification,
|
||||||
locale: locale
|
locale: locale
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue