Dim x AS New URI("http://www.example.com/test//test.asp")
Dim rel AS New URI("http://www.example.com/xxx/xxx.asp")
Console.Writeline(x.MakeRelativeUri(rel).Tostring())
In here output is:
../../xxx/xxx.asp
Which looks correct almost all web servers will process the two of the following as same request:
http://www.example.com/test//test.asp
http://www.example.com/test/test.asp
What's the best way to fix this behaviour is there any API to do this, or shall manually create a new URI and remove all // in the path?