I want to ask something. I build a simple email sender using asp.net core 2.0 and I want to send an email with a link to redirect the receiver into my web page like email authentication but I don't know how to make the callback URL.
I use :
<a href='https://"+Request.Scheme+"/Users/Userrole'>Click Here</a>
but the link in email was http:/Users/Userrole
Please tell me how to get the dynamic URL to my page, because using Localhost:443xx/User/Userrole is not elegant and does not work when I run on my local computer
Edit,
the very simple method to do this action is
<a href='https://"+this.Request.Host+"/Users/Userrole'>Click Here</a>
Thanks to FrustatedDeveloper for this answer