I've noticed that whatever method I use for obtaining the current requests URL, the query string ampersands are always encoded.
Request.RawUrl
Request.Url
HttpContext.Current.Request.Url.AbsoluteUri
Will always produce encoded results (notice the &):
/Controller/View?arg1=weffe&arg2=wefwe&arg3=wefewge
http://domain/Controller/View?arg1=weffe&arg2=wefwe&arg3=wefewge
http://domain/Controller/View?arg1=weffe&arg2=wefwe&arg3=wefewge
How do I ensure the returned URL is not encoded in this fashion, and appears as such:
/Controller/View?arg1=weffe&arg2=wefwe&arg3=wefewge
http://domain/Controller/View?arg1=weffe&arg2=wefwe&arg3=wefewge
Any help much appreciated - I'm sure I've missed something obvious here!
arg1=www&arg2=eee? Check out what browser actually navigates/requests.