We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 504c17c commit 4cbb9a7Copy full SHA for 4cbb9a7
1 file changed
app/mailers/user_mailer.rb
@@ -13,7 +13,7 @@ def email_confirmation(user, origin = nil, language = nil)
13
subject = "#{origin}: #{subject}" if origin
14
if origin
15
origin_name = origin.downcase.tr(' ', '_').gsub(/[\.\/]/, '')
16
- @url += "?origin=#{CGI.escape(origin_name)}"
+ @url = base_url + confirm_email_path(@user.id, token.token, language: language, origin: CGI.escape(origin_name))
17
template_path = Rails.root.join('config', 'email_templates', 'user_mailer', 'email_confirmation')
18
html_template_path = template_path.join("#{origin_name}.html.erb")
19
text_template_path = template_path.join("#{origin_name}.text.erb")
0 commit comments