Port support for rel urls

Fixes #934