Cope with relative URLs

Closes #36