FIX: unsubscribe links in summary emails were missing subfolder

This commit is contained in:
Neil Lalonde 2017-10-30 14:28:34 -04:00
parent a0dd75ba88
commit fec5691064
2 changed files with 2 additions and 1 deletions

View File

@ -420,7 +420,7 @@ body, table, td, th, h1, h2, h3 {font-family: Helvetica, Arial, sans-serif !impo
<%=raw(t 'user_notifications.digest.unsubscribe', <%=raw(t 'user_notifications.digest.unsubscribe',
site_link: html_site_link(@anchor_color), site_link: html_site_link(@anchor_color),
email_settings_url: Discourse.base_url + '/my/preferences/emails', email_settings_url: Discourse.base_url + '/my/preferences/emails',
unsubscribe_link: link_to(t('user_notifications.digest.click_here'), email_unsubscribe_url(host: Discourse.base_url_no_prefix, key: @unsubscribe_key), {:style=>"color: ##{@anchor_color}"})) %> unsubscribe_link: link_to(t('user_notifications.digest.click_here'), email_unsubscribe_url(host: Discourse.base_url, key: @unsubscribe_key), {:style=>"color: ##{@anchor_color}"})) %>
</div> </div>
<%= digest_custom_html("below_footer") %> <%= digest_custom_html("below_footer") %>

View File

@ -52,6 +52,7 @@
<%= digest_custom_text("above_footer") %> <%= digest_custom_text("above_footer") %>
<%=raw(t :'user_notifications.digest.unsubscribe', <%=raw(t :'user_notifications.digest.unsubscribe',
site_link: site_link, site_link: site_link,
email_settings_url: Discourse.base_url + '/my/preferences/emails',
unsubscribe_link: raw(@markdown_linker.create(t('user_notifications.digest.click_here'), email_unsubscribe_url(key: @unsubscribe_key, only_path: true)))) %> unsubscribe_link: raw(@markdown_linker.create(t('user_notifications.digest.click_here'), email_unsubscribe_url(key: @unsubscribe_key, only_path: true)))) %>
<%= raw(@markdown_linker.references) %> <%= raw(@markdown_linker.references) %>