From a0e0338d7e656a21b00b2c8c6d7f39d21e9f195a Mon Sep 17 00:00:00 2001 From: Hao Kung Date: Fri, 26 Jul 2019 11:04:08 -0700 Subject: [PATCH] Add missing area in link generation for identity UI (#12590) --- .../Identity/Pages/V3/Account/RegisterConfirmation.cshtml.cs | 2 +- .../Identity/Pages/V4/Account/RegisterConfirmation.cshtml.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/RegisterConfirmation.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/RegisterConfirmation.cshtml.cs index 55dea06371..39db719ff9 100644 --- a/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/RegisterConfirmation.cshtml.cs +++ b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/RegisterConfirmation.cshtml.cs @@ -81,7 +81,7 @@ namespace Microsoft.AspNetCore.Identity.UI.V3.Pages.Account.Internal EmailConfirmationUrl = Url.Page( "/Account/ConfirmEmail", pageHandler: null, - values: new { userId = userId, code = code }, + values: new { area = "Identity", userId = userId, code = code }, protocol: Request.Scheme); } diff --git a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/RegisterConfirmation.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/RegisterConfirmation.cshtml.cs index 639ccd6726..aa32c17361 100644 --- a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/RegisterConfirmation.cshtml.cs +++ b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/RegisterConfirmation.cshtml.cs @@ -81,7 +81,7 @@ namespace Microsoft.AspNetCore.Identity.UI.V4.Pages.Account.Internal EmailConfirmationUrl = Url.Page( "/Account/ConfirmEmail", pageHandler: null, - values: new { userId = userId, code = code }, + values: new { area = "Identity", userId = userId, code = code }, protocol: Request.Scheme); }