making sure links are relative to root