I have successfully created email confirmation link and sent email in ASP.NET Core using following call back link. However when I do it in Blazor, IUrlHelper
doesn’t work well:
var callbackUrl = _Url.Page(
"/Account/ConfirmEmail",
pageHandler: null,
values: new { area = "Identity", userId = userId, code = code, returnUrl = "~/" },
protocol: _request.Scheme);
I have tried using some website suggestion to register services as following but still got error.
Now I just want to switch to Blazor NavigationManager
to create the callback link.
Can anyone suggest how to use NavigationManager
to create the call back link? Thank you very much.
1