Added support for relative URLs