I have a basu uri and a relative one that am try to create new one from.
i did try the examples here, but there seems to be a bug. if i have a baseUrl as
http://ww.baseurl.com/somedir and i try to create an absolute path adding
/login.php or login.php using
uriReturn = New Uri(baseUri, relativeUri), i get
http://ww.baseurl.com/login.php instead of
http://ww.baseurl.com/somedir/login.php
what am i doing wrong?
There is no difference between
http://ww.baseurl.com/somedirandhttp://ww.baseurl.com/somefile. Therefore, when you use a relative URI from that address, it will assume the file part of the URI is to be replaced. To indicate thatsomediris a directory name, and be used as a base URI for the following queries, it should end with a slash:http://ww.baseurl.com/somedir/