I have a base URL :
http://my.server.com/folder/directory/sample
And a relative one :
../../other/path
How to get the absolute URL from this ? It's pretty straighforward using string manipulation, but I would like to do this in a secure way, using the Uri
class or something similar.
It's for a standard a C# app, not an ASP.NET one.
OR
Some might be looking for Javascript solution that would allow conversion of urls 'on the fly' when debugging
use like:
absoluteUrl("http://google.com")
or
absoluteUrl("../../absolute")