Fixed bug regarding relative URLs.