Port support for rel urls
Merge pull request #941 from roots/rel_url_f

Port support for rel urls