urlManager->createAbsoluteUrl add a amp; to my url in GMAIL

Hi,

i have problem with my register controller!

when i sent a message with url generation for activation (urlManager->createAbsoluteUrl) i have amp;

that add in my url in gmail, on yahoo, it isn’t exist!

i don’t konow why

Gmail

http://localhost/Projet_pred/web/index.php?r=registration%2Fconfirm&id=84&key=8b9247e46217e62b7f2a41e14fe801fdb7f4cfa0"

yahoo

http://localhost/Projet_pred/web/index.php?r=registration%2Fconfirm&id=84&key=8b9247e46217e62b7f2a41e14fe801fdb7f4cfa0"

thank

Please post your code for [color=#1C2837][size=2]createAbsoluteUrl()[/size][/color]

code

$activationLink = Yii::$app->urlManager->createAbsoluteUrl([‘registration/confirm’,‘id’=>$stud,‘key’=>$authKe->authKey])

The call seems fine so I don’t see why would be this difference, could be gmail is doing this encoding.

Btw "&" is the HTML special character for "&" so did you try this link, it probably works anyway.

More info - http://stackoverflow.com/questions/15776556/whats-the-difference-between-and-amp-in-html5