ASP.NET ~/ not resolving to “/”

asp.netpath

My application paths …
<a runat="server" href="~/Home">

…are resolving to “Home” (not “/Home”). After I rewrite URLs, “/Blah/Blah”, all the ”~/” links are relative to the rewrite: /Blah/Home

Is there a way to force a root to “/”?

Best Solution

Why don't you just write the links relative to the root ('/') instead of '~/', if you're application is not at the root of the domain, then the '~/' links will resolve to the root of the application