[fix] Correctly add ports to relative URLS. Fixes #5