make diagram URL relative