I need to do some work on the urls that look like this:
https://www.myurl.com/deep/path/file.rdp?q=true
I need to change it into:
https://www.myurl.com/deep/z.asmx
The path can be deeper.
When I’m working with files I use System.IO.Path to do modifications.
Is there a good way to work with url paths without doing a lot of string manipulations?
parts will be
/deep/path/file.rdp