title: How do I get the current PathName with a custom domain name in C#?
body: <p>I'm trying to generate invitations links to my application. </p>
  
  <p>The link must be the exact domain name the user is navigating which is  <a href="http://www.mycompany.com.br/" rel="nofollow noreferrer">http://www.mycompany.com.br/</a> but when I try this:</p>
  
  <pre class="lang-cs prettyprint-override"><code>HttpContext.Current.Request.Url.Scheme+"://"+HttpContext.Current.Request.Url.Host+"/SignUp/"
  </code></pre>
  
  <p>It returns this: <a href="http://mycompany.azurewebsites.net/SignUp/" rel="nofollow noreferrer">http://mycompany.azurewebsites.net/SignUp/</a>
  Instead of the custom DNS name: <a href="http://www.mycompany.com.br/SignUp/" rel="nofollow noreferrer">http://www.mycompany.com.br/SignUp/</a></p>