W wl Well-Known Member Licensed User Longtime User Feb 21, 2014 #1 Hi, Are there any methods to convert a relative URL to an absolute one ? Thanks
Erel B4X founder Staff member Licensed User Longtime User Feb 23, 2014 #2 Which type of URL? Upvote 0
W wl Well-Known Member Licensed User Longtime User Feb 23, 2014 #3 Hi Erel Something like: RefererUrl = http://somedomain.com/folder1/folder2/index.html RelativeUrl = "../test.html" --> AbsoluteUrl = http://somedomain.com/folder1/test.html Upvote 0
Hi Erel Something like: RefererUrl = http://somedomain.com/folder1/folder2/index.html RelativeUrl = "../test.html" --> AbsoluteUrl = http://somedomain.com/folder1/test.html
Erel B4X founder Staff member Licensed User Longtime User Feb 24, 2014 #4 This code will correctly combine the two urls: B4X: Log(RefererUrl.SubString2(0, RefererUrl.LastIndexOf("/") + 1) & RelativeUrl) Upvote 0
This code will correctly combine the two urls: B4X: Log(RefererUrl.SubString2(0, RefererUrl.LastIndexOf("/") + 1) & RelativeUrl)