Only make URLs relative if its not external

Fixes #752 and #753