Fix relative urls

Supports #374