Make links relative and dynamic