Handle Absolute URL and relative URLs