Bug fix in getUrl() method (bug with ^ urls)