fix paths to self-hosted documents