title: Absolute URL paths mysteriously broken - Am I doing it Wrong?
body: <p>I am developing an ASP.NET MVC application, and have been for a while.</p>
  
  <p>I often use the ~ notation for my relative urls, so I can use the same code for testing and deployment.</p>
  
  <p>When I'm running localhost I am using <code>http://localhost:XXXX</code></p>
  
  <p>When the system is live the URL pattern is <code>http://server_name/build_db_name</code></p>
  
  <p>Previously, the ~ notation would suffice so <code>~/Management/Employees</code> would work fine, but for some unknown reason, this is not the case anymore.</p>
  
  <p>So I am under the impression I've somehow been doing this wrong.</p>
  
  <p>So my question: <strong>What is the most reliable way of constructing relative URLs?</strong></p>