I want to call router with multiple parameters using C#.Here is i am making url
var _email = UtilityConverter.Encrypt(Email);
var _userId = UtilityConverter.Encrypt(Convert.ToString(UserId));
// this.router.navigate(['search', { term: term}]);
var _subject = "Email Verification";
StringBuilder sb = new StringBuilder();
sb.Append("<html>");
sb.Append("<body>");
sb.Append("<p>Dear ,</p>");
sb.Append("<p>Please click the below link to verify your email.</p><br>");
sb.Append("<a href='http://localhost:4200/Emailverification/" + _email + "/" + _userId + "'>click here</a>");
sb.Append("<p>Sincerely,<br>-Offey</br></p>");
sb.Append("</body>");
sb.Append("</html>");
return MailUtilityHelper.SendMail(Email, _subject, sb.ToString());
My Email and userid is encrypted which cause the issue.
here is my router with multiple parameter
{path:'Emailverification/:email/:userid', component:EmailVerficationComponent,canActivate : [AuthguardComponent]},
any help will be highly appreciated. gives me following error in console.