I need to be able to get the URL as I see it in the browser i.e The rewritten one. For instance:
If my Url was www.myurl.com/Test.html
and I then used Request.Url.AbsoluteUri
, the URL returned would be: www.myurl.com/Default.aspx?Action=Test
I need to be able to get back the exact rewritten URL.
Does anyone know how I can achieve this?
From Tchami:
Have you tried Request.RawUrl? I think that gives you the unmapped URL.
Will mark this as the answer when I am allowed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With