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