Updated Url helper to detect base path automitically

Updated Url helper to detect base path automitically