Download & Extend

Bad account settings link in mail

Project:Mail
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

I noticed that the link in the email to change account settings is not getting set to the recipient's id.

This code:

<?php
$output
.= '<p>' . t('If you don\'t wish to receive such e-mails, you can <a h
ref="%url">change your account settings</a>.'
, array('%url' => url('user/$accoun
t->uid'
, NULL, NULL, TRUE))) . '</p>';
?>

is producing this error:

page not found: user/$account->uid not found

Comments

#1

Thanks, fixed.

#2

#3

#4

#5

#6

#7

#8

Version:<none>» 4.6.x-1.x-dev
Status:fixed» active

I just downloaded and installed the 4.6.3 version and the bad account settings link is still there. See:

Sent by Lennart Kiil from forsker.net. <---- This is right, fine!

If you don't wish to receive such e-mails, you can change your account settings
. <---- So the account settings link still go to user 1 when it should go to the user recieving the e-mail (in this case user 14)

Kind Regards,
Lennart Kiil

#9

It removed my example, but the point is that the change my account settings link always point to user/1 no matter that the e-mail is sent to some other user.

Kind Regards,
Lennart