Skip to content

Commit ff7a5bf

Browse files
MAGETWO-72539: cviking26_issue-9489 // added query param to url build - description … magento#10848
2 parents 0d62224 + 2a35212 commit ff7a5bf

File tree

2 files changed

+3
-3
lines changed
  • app/code/Magento/Customer/Model
  • dev/tests/integration/testsuite/Magento/Customer/Controller

2 files changed

+3
-3
lines changed

app/code/Magento/Customer/Model/Url.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ public function getForgotPasswordUrl()
237237
*/
238238
public function getEmailConfirmationUrl($email = null)
239239
{
240-
return $this->urlBuilder->getUrl('customer/account/confirmation', ['email' => $email]);
240+
return $this->urlBuilder->getUrl('customer/account/confirmation', ['_query' => ['email' => $email]]);
241241
}
242242

243243
/**

dev/tests/integration/testsuite/Magento/Customer/Controller/AccountTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,8 @@ public function testWithConfirmCreatePostAction()
304304
$this->assertSessionMessages(
305305
$this->equalTo([
306306
'You must confirm your account. Please check your email for the confirmation link or '
307-
. '<a href="http://localhost/index.php/customer/account/confirmation/email/'
308-
. 'test2%40email.com/">click here</a> for a new link.'
307+
. '<a href="http://localhost/index.php/customer/account/confirmation/'
308+
. '?email=test2%40email.com">click here</a> for a new link.'
309309
]),
310310
MessageInterface::TYPE_SUCCESS
311311
);

0 commit comments

Comments
 (0)