When I call Request.RawUrl I am not getting the domain name (at least in development).
For example, if my url locally is:
http://localhost:2343/some/thing
The call to Request.RawUrl is giving me back:
/some/thing
I recall it returns everything, is this the behaviour b/c it is local dev?
Update
I am also using Url Re-Writing so things like Request.Url.AbsoluteUri return back the internal url, not the re-written url that i need to get.
is javascript the only way then?
Or I maybe I can use Request.RawUrl for the url part, and then just get the domain name part somehow? (sometimes it has a port too...)