tags:

views:

21

answers:

0

Running a site through XENU (a link checker) I noticed it thought some pages on my site were external, so didnt follow them.

It turns out the url I had started at was http://localhost/webTest/, however System.Web.VirtualPathUtility.ToAbsolute("~/") returns http://localhost/WebTest/, when I need it to always return http://localhost/webTest/ (or whatever the absolute root is)

Other than looking at Request.RawURL and doing some replace hackery, does anyone know of any alternatives?