Skip to content

Commit 4cbb9a7

Browse files
committed
Correct origin in confirm links
1 parent 504c17c commit 4cbb9a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/mailers/user_mailer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def email_confirmation(user, origin = nil, language = nil)
1313
subject = "#{origin}: #{subject}" if origin
1414
if origin
1515
origin_name = origin.downcase.tr(' ', '_').gsub(/[\.\/]/, '')
16-
@url += "?origin=#{CGI.escape(origin_name)}"
16+
@url = base_url + confirm_email_path(@user.id, token.token, language: language, origin: CGI.escape(origin_name))
1717
template_path = Rails.root.join('config', 'email_templates', 'user_mailer', 'email_confirmation')
1818
html_template_path = template_path.join("#{origin_name}.html.erb")
1919
text_template_path = template_path.join("#{origin_name}.text.erb")

0 commit comments

Comments
 (0)